Commit Graph

462 Commits

Author SHA1 Message Date
Ivan Kozlovic
c6d37ecf8f [IMPROVED] Route performance for larger messages 2016-08-01 19:01:34 -06:00
Ivan Kozlovic
6f9d542393 Minor changes based on comments 2016-07-26 12:25:33 -06:00
Ivan Kozlovic
fda5bd7ac7 [ADDED] Server sends INFO with cluster URLs to clients with support
Clients that will be at the ClientProtoInfo protocol level (or above)
will now receive an asynchronous INFO protocol when the server
they connect to adds a *new* route. This means that when the cluster
adds a new server, all clients in the cluster should now be notified
of this new addition.
2016-07-26 10:55:55 -06:00
Ivan Kozlovic
d21210e0e9 [FIXED] PS test to reduce failures in some situations
Added garbage collection before each capture method and bump the
delta threshold to 1MB.

Resolves #310
2016-07-18 13:00:49 -06:00
Derek Collison
ab11e04bf9 Fixes for gofmt -s 2016-07-11 12:16:21 -07:00
Derek Collison
d31d9f41c7 Check for proper dereference 2016-07-11 12:16:05 -07:00
Derek Collison
e3b5713ab9 Check for control line violations and memory attacks 2016-07-11 12:03:49 -07:00
Derek Collison
889ba32cc1 Bump version for multi-user and authorization [ci skip] 2016-06-23 09:22:02 -07:00
Derek Collison
8558c8e4c5 Merge pull request #300 from nats-io/authorization
Authorization
2016-06-20 09:26:10 -07:00
Derek Collison
8d07e06b91 Always check for pruning 2016-06-20 09:10:54 -07:00
Derek Collison
fa95bd936b spelling 2016-06-17 10:09:14 -07:00
Derek Collison
67ed61c837 fixups for PR comments 2016-06-17 09:59:39 -07:00
Derek Collison
248bd8d366 bug fix for _SYS. 2016-06-16 21:46:54 -07:00
Derek Collison
8a80579651 Merge branch 'master' of https://github.com/nats-io/gnatsd 2016-06-16 20:43:40 -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
Ian Eyberg
b5a30be37c . 2016-06-13 10:07:28 -07:00
Ian Eyberg
9d5c5ba1a8 rumprun support 2016-06-13 09:29:40 -07:00
Derek Collison
86e883ce7d Down bump for bug fix release 2016-06-09 12:49:34 -07:00
Derek Collison
8e81a1803c Fix for #288 2016-06-09 12:27:11 -07: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
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
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
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
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
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
Antonin Amand
1eb12a1501 fix concurrent map access 2016-05-19 17:14:48 +02:00
Derek Collison
df02549dc2 Report total subscriptions under /varz 2016-05-16 12:46:30 -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
4bbd2231a6 update server configs and README to new listen style 2016-05-12 17:34:14 -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
95787732db next working version 2016-05-11 16:17:58 -07:00
Ivan Kozlovic
a8ff707aff Fix INFO_ARG parsing
In split buffer conditions, a buffer is used to accumulate bytes.
After processing, this buffer needs to be reset.

Resolves #270
2016-05-11 15:51:29 -06:00
Derek Collison
26caad27c1 Clear subs activity cache 2016-05-09 13:56:34 -07:00
Derek Collison
3ff8ad706a v0.8.0 release 2016-05-09 12:47:31 -07:00
Derek Collison
fd27025aa3 Ignore client pings for last connection activity 2016-05-09 09:56:38 -07:00
Colin Sullivan
26dab3bf8a Update PSE for Windows
* Call into the performance counter API directly
* Incorporate caching to reduce load on the server
2016-05-05 23:31:05 -06:00
Derek Collison
137c2d0109 Add sampling for pcpu 2016-05-05 13:55:23 -07:00