Ivan Kozlovic
a23ef5b740
Switch to send-all-subs when number of RS- gets too big
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-03 13:15:11 -07:00
Derek Collison
574fd62e01
Allow servers to send and receive messages directly
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-11-29 12:15:08 -08:00
Ivan Kozlovic
52c724a83c
Updates based on comments
...
- Solve RS+ with wildcards
- Solve issue with messages not send to remote gateways queue subs
if there was a qsub on local server.
- Made rcache a perAccountCache since it is now used by routes and
gateways
- Order outbound gateways only on RTT updates
- Print a server's gateway name on startup
- Augment/add some tests
- Update TLS handling: when connecting, use hostname for ServerName
if url is not IP, otherwise use a hostname that we saved when
parsing/adding URLs for the remote gateway.
- Send big buffer in chunks if needed.
- Add caching for qsubs match
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-11-27 19:39:41 -07:00
Ivan Kozlovic
10fd3ca0c6
Gateways [WIP]
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-11-27 19:00:03 -07:00
Derek Collison
a2e310ffc1
Vendor jwt, fixes for nkey, jwt changes
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-11-21 19:22:04 -08:00
Derek Collison
0ee714ce28
Add JWT support for users, accounts and import activations.
...
Add in trusted keys options and binary stamp
User JWT and Account fetch with AccountResolver
Account and User expiration
Account Imports/Exports w/ updates
Import activation expiration
Signed-off-by: Derek Collison <derek@nats.io >
2018-11-21 10:36:32 -08:00
Ivan Kozlovic
0c11279946
Fixed data race with client trace flag
...
This was introduced with ec3115ad21
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-11-07 16:33:30 -07:00
Derek Collison
57904107b2
Added L1 cache to routes
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-11-01 13:31:12 -07:00
Derek Collison
4058948185
Updates based on feedback
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-10-29 13:51:21 -07:00
Derek Collison
ec3115ad21
Fix double trace
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-10-25 09:30:13 -07:00
Derek Collison
47963303f8
First pass at new cluster design
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-10-24 21:29:29 -07:00
Derek Collison
f6cb706c68
First pass req/reply across accounts
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-09-29 13:04:19 +02: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
Derek Collison
c218d9b0ec
Fix for #278
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-20 22:41:05 -07:00
Derek Collison
00901acc78
Update license to Apache 2
2018-03-15 22:31:07 -07:00
Tyler Treat
648b7367c0
Fix data race
2017-06-07 17:40:17 -05:00
Tyler Treat
9902c3da84
First pass at implementing config reload
2017-05-30 16:18:36 -05:00
Ivan Kozlovic
c6d37ecf8f
[IMPROVED] Route performance for larger messages
2016-08-01 19:01:34 -06: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
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
768f23b5b4
dynamic read buffers
2016-04-03 14:30:17 -07:00
Colin Sullivan
2baac47820
Address issues found by golint.
...
* No functional changes
* Did not address the ALL_CAPS issues
* Did not modify public APIs and field names.
2016-03-15 15:21:13 -06:00
Waldemar Quevedo
86824713c6
Add UNSUB_SPC parser state
2016-02-02 21:39:30 -08:00
Waldemar Quevedo
c1ebd4efd8
Fix and tests for proto snippet function
2015-12-06 22:05:35 -08:00
Waldemar Quevedo
498df401af
Return empty string when can't take slice for snippet from buffer
2015-11-29 20:47:47 -08:00
Waldemar Quevedo
18f932620f
Avoid cap out of range error when handling split buffer
2015-11-29 11:11:17 -08:00
Derek Collison
8fb92dc7e2
Fix parser bug around MSG protocol.
...
Make sure we do the right thing when no args are presented for an MSG, e.g. MSG <spc>.
Also do not parse at all of this is a client, only valid for routes.
2015-08-26 23:04:10 -07:00
Derek Collison
90d1d6d572
Much improved large message performance
2015-06-25 13:51:53 -07:00
Oleg Shaldybin
1b39a9fe94
Fix sid for split messages
...
When message is split we need to copy message arguments to avoid
rewriting them with new message. Subject, reply and size were correctly
copied by sid wasn't. That led to dropping some messages in clustered
mode if they were split, and the second part was long enough to overwrite
sid in the original buffer.
2015-04-07 22:23:48 -07:00
Derek Collison
d6a072c89b
Test for dangling argBufs
2014-11-16 12:37:06 -08:00
Derek Collison
65ff554574
Better split buffer testing for CONNECT, fixes issue #63 .
2014-11-16 08:58:36 -08:00
Derek Collison
eb5c550f10
Fixed slice panic on MSG_ARG split buffer
2013-12-12 13:11:37 -08:00
Derek Collison
f0d98db3c4
Handle errors over routes better
2013-10-16 10:46:03 -07:00
Derek Collison
bd0bb5d52c
Properly process INFO messages from routes.
2013-10-16 08:44:59 -07:00
Derek Collison
d322939b17
gofmt
2013-08-19 12:16:30 -07:00
Derek Collison
8fa318738c
Attach /r/n to msg to avoid extra write. Fix auth checks
2013-08-19 12:14:29 -07:00
Derek Collison
c7ec32b2e0
Make checking authTimer cheaper
2013-08-16 06:46:50 -07:00
Derek Collison
025b63300b
1-hop semantics for messages from routes
2013-07-29 17:09:41 -07:00
Derek Collison
ec4a46c959
MSG proto processing
2013-07-29 15:48:07 -07:00
Derek Collison
33fdc5274d
Fixed data races
2013-06-12 00:12:52 -07:00
Derek Collison
0ae60a4549
Added proper processing of client PONGs
2013-02-05 17:36:01 -08:00
Derek Collison
3977043780
Added first pass http monitoring (e.g. /varz)
2013-01-02 18:11:01 -06:00
Derek Collison
de0e018022
Added AuthErr
2012-12-19 17:48:26 -08:00
Derek Collison
604c3bd4f3
Only print partial content on error
2012-12-17 16:11:54 -08:00
Derek Collison
516f95faac
Proto fix for transition to args, proto err returns
2012-12-10 09:47:51 -08:00
Derek Collison
2968ea1538
auth support, cleanup
2012-12-05 16:59:48 -08:00
Derek Collison
a8a2c09df9
Add in clone pub args, fix state cleanup
2012-11-20 13:09:57 -08:00
Derek Collison
fd4612fab0
Properly handle unsub and pub/msg split buffer scenarios
2012-11-20 08:15:28 -08:00
Derek Collison
6630efb298
first pass server
2012-11-12 14:26:38 -08:00