Derek Collison
1cbfbfa071
Basic account support
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-09-29 13:04:19 +02:00
Ivan Kozlovic
e7f5cc82f0
Updates
...
- Use stack buffers
- Ensure that buffer size is no greater than 90% of max_pending
- Added test with low max_pending
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-09-26 12:19:14 -06:00
Ivan Kozlovic
178aab096d
Updates based on comments
...
- Removed un-needed lock/unlock
- Buffer SUBs/UNSUBs protocols and ensure flushing when buffer
gets to a certain size (otherwise route would get disconnected
with high number of subscriptions)
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-09-24 16:06:34 -06:00
Ivan Kozlovic
178766d6c9
[ADDED] Support for route permissions config reload
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-09-18 18:28:40 -06:00
Waldemar Quevedo
7337eb6b80
Fix regex matching group for removing password
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2018-09-13 12:49:00 -07:00
Ivan Kozlovic
846544ecfe
Merge pull request #747 from nats-io/update_route_perms
...
[CHANGED] Cluster permissions moved out of cluster's authorization
2018-09-11 10:04:13 -06:00
Ivan Kozlovic
e1202dd30a
[CHANGED] Cluster permissions moved out of cluster's authorization
...
It will be possible to set subjects permissions regardless of the
presence of an authorization block.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-09-10 17:03:50 -06:00
Derek Collison
fff62d5bf7
Warn on plaintext passwords in config and redact from logs
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-09-10 15:29:42 -07:00
Derek Collison
3d2cb0e7d1
Basic nkey support and nonce handling
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-09-10 15:29:42 -07:00
Derek Collison
f032dc4529
Simplify, don't need connect processing
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-09-05 17:03:45 -07:00
Derek Collison
2ee868ba18
Propogate route imports and exports to other connected servers
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-09-05 16:15:31 -07:00
Derek Collison
34b556dd9f
Additional nil checks for perms
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-08-25 09:49:29 -07:00
Derek Collison
a79806e79d
Add enforcement of allow and deny permissions
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-08-23 11:00:35 -07:00
Derek Collison
65188f9768
Added parser for new style authorizations
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-08-22 20:41:48 -07:00
Derek Collison
e78d587083
Added support for maximum subscriptions per connection
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-07-01 15:13:59 -07:00
Derek Collison
061788ab9b
Add no echo feature
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-28 18:34:27 -07:00
Derek Collison
ec8e2636de
Track closed connections and reason for closing
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-25 17:56:07 -07:00
Ivan Kozlovic
dd59bdf285
Merge pull request #688 from nats-io/route_permissions_v2
...
[ADDED] Route permissions
2018-06-21 21:13:02 -06:00
Ivan Kozlovic
d435fb9aa3
Remove some debug statements
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-06-21 20:23:39 -06:00
Derek Collison
b7ece91825
Avoid race by using conditional deep copy
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-21 18:22:06 -07:00
Derek Collison
3f39c244e4
Fixes for comments
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-21 17:37:40 -07:00
Ivan Kozlovic
bf3bc81722
Add route permissions
...
The `client.perms` struct is left unchanged. We simply map Import
and Export semantics to existing Publish and Subscribe ones.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-06-21 17:04:10 -06:00
Derek Collison
17fecd4c9b
Support CID in client INFO, allow filtering /connz by CID
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-21 15:23:15 -07:00
Derek Collison
c218d9b0ec
Fix for #278
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-20 22:41:05 -07:00
Derek Collison
7e28af236b
Support for RTT - #643
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-20 20:18:59 -07:00
Derek Collison
f7cb616cd2
Optimization per @cdevienne
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-12 13:38:13 -07:00
Derek Collison
4fb84e229c
Avoid lock to server with client lock held
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-12 12:55:50 -07:00
Derek Collison
844f376140
Performance optimizations, beta3, fixes to various tests.
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-11 15:11:03 -07:00
Derek Collison
d603c53f67
Big message optimizations, slow consumer updates
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
6299e034cb
dynamic buffer updates
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
50bb4b9a1b
delivery last activity update
2018-06-04 17:45:05 -07:00
Derek Collison
049db6e854
Support for queue subscriber retries over routes
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
30e31d5cd2
Test dynamic buffers, track short reads/writes
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
e9178f1f42
Performance tweaks
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
e64ac424c1
Check flushOutbound and snapshot write_deadline and max_pending
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
50a99241ea
Slow consumer updates and latency improvements.
...
Use pending bytes as slow consumer trigger, so reintroduce max_pending.
Improve latency with inplace flush calls when appropriate. Utilize simple
time budget for readLoop routine.
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
481697ef67
New outbound data architecture
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
25654a4632
Collect pub permissions into own function
2018-06-04 17:45:05 -07:00
Derek Collison
8502fb1edc
Add fast slice for large psubs for Match
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Derek Collison
b9c73e96ee
Changed sublist to avoid quadratic time in removal with large N
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-04 17:45:05 -07:00
Ivan Kozlovic
705d8f5fe8
Fix last activity monitoring test
...
This test originally used only 1 connection. It was then modified
to use another connection to check the publishing effect into
the last activity. However, when polling for connz we were using
[0], but that may not necessarily match the connection we were
checking.
I don't think that there was a need for a new connection in this
test, so use a single connection.
2018-03-23 14:20:16 -06:00
Ivan Kozlovic
fb972bd0fc
Remove ssl_required references
2018-03-23 13:40:10 -06:00
Derek Collison
b2a9ed97d6
Merge pull request #650 from nats-io/cncf
...
Move to CNCF and Apache 2 License
2018-03-16 16:23:10 -07:00
Derek Collison
00901acc78
Update license to Apache 2
2018-03-15 22:31:07 -07:00
Ivan Kozlovic
6f9983291c
Update comments
2018-03-12 15:53:11 -06:00
Ivan Kozlovic
ee8f001131
[IMPROVED] Better attempt at delivering messages to routed queue subs
...
This PR is based out of #633 . It imroves parsing QRSID so that the
TestRouteQueueSemantics test now passes (when dealing with malformed
QRSID).
A test similar to what is reported in #632 was also added. This
test however, uncovers a race condition that will be fixed in a
separate PR.
Resolves #632
2018-03-09 14:45:52 -07:00
Ivan Kozlovic
1bd40f98d9
Merge branch 'master' of https://github.com/VidScale/gnatsd into VidScale-master
2018-03-09 14:42:22 -07:00
Ivan Kozlovic
999e0299d7
Remove unused code
2018-03-06 08:46:01 -07:00
Ivan Kozlovic
461ab96a58
Additional fix to #631
...
This is the result of flapping tests in go-nats that were caused
by a defect (see PR https://github.com/nats-io/go-nats/pull/348 ).
However, during debugging, I realize that there were also things
that were not quite right in the server side. This change should
make it the notification of cluster topology changes to clients
more robust.
2018-03-05 20:03:46 -07:00
Volodymyr Khoroz
791bfd4c37
[ #632 ] - fix a race condition causing messages to be lost with non-zero max_msgs in a cluster
2018-03-05 18:36:24 +02:00