Commit Graph

873 Commits

Author SHA1 Message Date
Derek Collison
49e5dfd797 Updated completed items 2016-06-16 23:54:18 -07:00
Derek Collison
248bd8d366 bug fix for _SYS. 2016-06-16 21:46:54 -07:00
Derek Collison
a55b7c2744 log errors cleanup 2016-06-16 20:42:54 -07:00
Derek Collison
7730fac9e2 Authorization enforcement and performance tweaks 2016-06-16 17:07:25 -07:00
Derek Collison
449aa6e8ef Finalized opts parser for subject authorization 2016-06-16 13:49:26 -07:00
Derek Collison
1d74a0dea3 First pass authorization parser 2016-06-16 10:10:52 -07:00
Derek Collison
27ac524daf version bump to next beta 2016-06-15 11:10:50 -07:00
Derek Collison
86e883ce7d Down bump for bug fix release v0.8.1 2016-06-09 12:49:34 -07:00
Derek Collison
8e81a1803c Fix for #288 2016-06-09 12:27:11 -07:00
Derek Collison
60db74f750 Merge pull request #298 from nuss-justin/patch-1
Update Go version in README.md
2016-06-09 08:18:11 -08:00
Justin Nuß
9bfc43232f Update Go version in README.md
Since commit 832bac98 the conf package uses os.LookupEnv, which was added in Go 1.5, thus making gnatsd require Go 1.5+.

This commit updates the README, which still said that Go 1.4+ was required.
2016-06-09 15:05:45 +02:00
Derek Collison
f2c17eb159 Merge pull request #294 from nats-io/auth_timeout_race
Fix possible authentication timeout after accepting CONNECT proto
2016-06-07 11:43:26 -08:00
Ivan Kozlovic
674109b922 Fix possible authentication timeout after accepting CONNECT proto
This PR addresses the issue by testing the result of the
`Timer.Stop()` method, which if `false` indicates that the callback
may be in progress. When that happens, the `processConnect` method
will wait for the callback to finish and simply return. The auth
timeout error will therefore be received by the client during the
synchronous connect process, which will allow it to try again.

Resolves #289
2016-06-06 21:27:45 +02:00
Derek Collison
1ac5f97d44 Merge pull request #292 from rybit/update_docs
update readme about cluster config
2016-06-06 10:23:24 -08:00
Derek Collison
cf66ae947c Merge pull request #293 from nuss-justin/simplify-processmsg
Simplify processMsg
2016-06-06 10:14:36 -08:00
Justin Nuß
6715821140 Simplify processMsg
This commit has 3 changes:

- Remove duplicate logic for creating cache results map.
- Move code out of an if that will always be true and remove the if.
- Use == 0 instead of <= 0 for comparing the return value of len(X) as the value can never be < 0.
2016-06-05 14:18:03 +02:00
Ryan Neal
64057afbbe update readme about cluster config 2016-06-02 16:30:05 -07:00
Derek Collison
249173d331 Merge pull request #287 from nats-io/add-connz-sort-uptime
Add uptime sort option for connz.
2016-05-24 21:08:13 -07:00
Colin Sullivan
80a504303e Add uptime sort option for connz. 2016-05-24 19:32:06 -06:00
Derek Collison
03ab1b6130 Merge pull request #283 from nats-io/add_stacksz
Add /stacksz to monitoring
2016-05-23 22:14:25 -07:00
Ivan Kozlovic
3492d25e69 Use initial buffer on stack 2016-05-23 22:41:40 -06:00
Ivan Kozlovic
2068cc7b36 Minor updates based on comments 2016-05-23 22:32:31 -06:00
Derek Collison
0cc17ede3b Merge pull request #285 from nats-io/fix_test_http_host
Fix test
2016-05-23 21:09:04 -07:00
Derek Collison
178174bf33 Merge pull request #284 from nats-io/fix_deadlines
Fix possible blocking on sock write or connection close (when using TLS)
2016-05-23 21:07:47 -07:00
Ivan Kozlovic
d46a17d228 Fix test
Use RunServer() so that it ensures that server is ready to accept
connections.
2016-05-23 20:15:26 -06:00
Ivan Kozlovic
2bec28e146 Fix test
Loop should stop whenever a valid ip is found.
2016-05-23 20:05:09 -06:00
Ivan Kozlovic
188f7bf84c Fix possible blocking on socket write or connection close (when using TLS)
Ensure that all socket writes are protected with deadlines.
For connection Close(), also use deadlines since in case of TLS,
the Close() will send an alert (do a write) if the handshake was
completed. If the peer is not reading, this would cause the Close()
to hang.
2016-05-23 19:57:54 -06:00
Ivan Kozlovic
7bcb699903 Add /stacksz to monitoring
Allows to get the server's stacks from the monitoring interface.
2016-05-23 14:59:09 -06:00
Derek Collison
7d79fa1e09 Merge pull request #282 from nats-io/monitor_flapper
Monitor flapper
2016-05-22 16:47:16 -07:00
Derek Collison
a2d03fbf5a flush immediately on creation 2016-05-22 15:04:47 -07:00
Derek Collison
67479ea4cd remove runtime import 2016-05-22 13:50:02 -07:00
Derek Collison
d4d2f5ae5c Fix flapper test 2016-05-22 13:40:50 -07:00
Derek Collison
dcb02f93ef Merge pull request #281 from nats-io/conf_variables
Configuration Variables
2016-05-22 10:58:09 -07:00
Derek Collison
8f4b31b5ed Special case raw bcrypted passwords 2016-05-22 10:41:16 -07:00
Derek Collison
832bac98be First pass variable support.
This allows blocked scoped variables to be set and retrieved as values using the $ prefix.
e.g. foo = 22; bar = $foo

Also supports env variables being used as variables and will properly parse to the correct type.
2016-05-22 10:21:00 -07:00
Derek Collison
68e8b83fcd Merge pull request #280 from znly/master
Concurrent map access in server/route.go
2016-05-20 09:16:14 -07:00
Antonin Amand
1eb12a1501 fix concurrent map access 2016-05-19 17:14:48 +02:00
Derek Collison
074c8ce9f4 Merge pull request #279 from nats-io/fix_readme
Fix command line parameters for clustering doc [ci skip]
2016-05-18 12:16:59 -07:00
Ivan Kozlovic
13d6756901 Fix command line parameters for clustering doc [ci skip] 2016-05-18 13:14:10 -06:00
Derek Collison
d932f5686b Merge pull request #276 from nats-io/varz_subs
Report total subscriptions under /varz
2016-05-16 12:54:52 -07:00
Derek Collison
df02549dc2 Report total subscriptions under /varz 2016-05-16 12:46:30 -07:00
Derek Collison
e124d3010f Merge pull request #275 from nats-io/multiuser
Multiuser Auth Support
2016-05-15 10:27:23 -07:00
Derek Collison
82f04baa12 Allow optional reporting of authorized user under connz 2016-05-15 10:07:37 -07:00
Derek Collison
46a9e6f0bc First pass at multi-user support 2016-05-13 12:27:57 -07:00
Derek Collison
01b635cc8f Merge pull request #273 from nats-io/listen
Enable listen address parsing
2016-05-13 06:28:14 -07:00
Derek Collison
4bbd2231a6 update server configs and README to new listen style 2016-05-12 17:34:14 -07:00
Derek Collison
4c36522f55 new listen style 2016-05-12 17:22:09 -07:00
Derek Collison
2aba059523 Supporting test configs 2016-05-12 16:58:43 -07:00
Derek Collison
9e73c1db76 Enable listen address parsing for client, cluster and http, enforce http hosts as separate 2016-05-12 16:47:01 -07:00
Derek Collison
d615273a3e Bump badge to release 0.8.0 2016-05-11 16:29:11 -07:00