Ivan Kozlovic
714b75d688
Bump version to 2.0.0-RC2
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-14 19:56:49 -07:00
Ivan Kozlovic
d654b18476
Fixed reload of boolean flags
...
PR #874 caused an issue in case logtime was actually not configured
and not specified in the command line. A reload would then remove
logtime.
Revisited the fix for that and included other boolean flags, such
as debug, trace, etc..
Related to #874
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-14 19:18:00 -07:00
Derek Collison
7d6b9144de
Fix race, bump version to RC1
...
Signed-off-by: Derek Collison <derek@nats.io >
2019-01-11 10:58:26 -08:00
Derek Collison
a9735def02
Remove unused statistic
...
Signed-off-by: Derek Collison <derek@nats.io >
2019-01-10 18:04:20 -08:00
Derek Collison
e3d19ef698
Changes to prevent fan in scenarios from slow consumer state
...
Signed-off-by: Derek Collison <derek@nats.io >
2019-01-10 15:56:04 -08:00
Ivan Kozlovic
7ad4498a09
Gateways: Remove unused permissions options
...
Permissions were configured but not implemented. Removing for now.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-10 09:49:36 -07:00
Ivan Kozlovic
2186827c46
Merge pull request #874 from nats-io/fix_logtime_reload
...
[FIXED] Logtime reset to true on config reload
2019-01-10 09:31:06 -07:00
Ivan Kozlovic
c310489689
Merge pull request #872 from nats-io/fix_mem_usage_on_tls_failure
...
[FIXED] Memory usage for failed TLS connections
2019-01-10 09:16:16 -07:00
Ivan Kozlovic
d8817a37e6
[FIXED] Logtime reset to true on config reload
...
Resolves #789
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-09 19:51:37 -07:00
Ivan Kozlovic
ae239dc3b5
Fixed data race
...
Resolves #870
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-09 18:41:48 -07:00
Ivan Kozlovic
b075c00103
[FIXED] Memory usage for failed TLS connections
...
Moving some of the connection initialization post TLS handshake
to avoid temporary memory growth when getting repeated failed
connections to any of the client, route and gateway ports.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-09 15:50:23 -07:00
Ivan Kozlovic
7449e9ac53
Replace megacheck with staticcheck
...
Fixed issues reported by staticcheck
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2019-01-09 14:14:47 -07:00
Derek Collison
7978d8e667
Support for mapping user from TLS client certificate
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-20 07:51:43 -08:00
Derek Collison
a59d9a8867
Fix for export updates moving from private to public not working
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-19 15:14:58 -08:00
Derek Collison
cc5873cd72
Added start time to Statsz from server.
...
Added in more debug for imports processing.
Changed subs reporting for Statsz.
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-19 13:19:00 -08:00
Ivan Kozlovic
a4fa06aaec
Fixed TLS tests to work with new go-nats behavior
...
Since we no longer default to InsecureSkipVerify:true when
not specifying tls://, some tests needed updating.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-19 12:08:46 -07:00
Waldemar Quevedo
502d861466
Bump version
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2018-12-19 08:42:35 -08:00
Waldemar Quevedo
3cfc2fec29
Only consider as slow consumers clients that did CONNECT
...
Under some scenarios a client may hit the slow consumer
write deadline during the connecting stage, meaning that
it is possible to consider unhealthy clients could not
finish the TLS handshake as slow consumers.
With this change, we only consider as slow consumers
clients that did connect to the cluster without issues.
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2018-12-18 23:17:57 -08:00
Derek Collison
0953016abe
Bumped version
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-13 20:39:23 -08:00
Ivan Kozlovic
7c220ba700
Support for service export with wildcards
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-13 21:22:01 -07:00
Derek Collison
c87702fd7c
jwt lib update, bumped version
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-12 20:43:07 -08:00
Ivan Kozlovic
519c3dab47
Add Gateway test for service import and interest only
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 14:44:02 -08:00
Ivan Kozlovic
1daa7d58ab
Bump version
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 07:50:31 -08:00
Ivan Kozlovic
4719c618b3
Add some comments
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 07:12:33 -08:00
Ivan Kozlovic
4b70cdfc89
Fix Gateways with Service Imports
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 00:27:40 -08:00
Derek Collison
7fb2886098
Add total to account conn updates
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 18:52:04 -08:00
Derek Collison
2ab23ca307
Make public for tooling
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 18:33:23 -08:00
Ivan Kozlovic
efd891d2ae
Fix performance degradation introduced by GW code
...
This impacted even non gateway traffic
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-08 17:44:32 -07:00
Derek Collison
a92ef0252c
Should not send disconnect events on account $G.
...
Converted to authorization error events on different subject.
Add cluster name if gateways are configured and pass in INFO to clients.
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 16:07:02 -08:00
Ivan Kozlovic
dd1b598121
Add more tracing for Gateway connect/ip
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-08 11:13:54 -07:00
Derek Collison
bb97ae7b6f
Allow normal base64 sig for bare nkeys too
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 22:52:16 -08:00
Ivan Kozlovic
6eaa1dc351
Resolve IP if gateway listen is 0.0.0.0 or ::
...
Otherwise, this may be sent to servers in the cluster and to other
gateways which may result in attempt to connect to self which
in case of TLS would produce error.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-07 17:28:21 -07:00
Derek Collison
4a0a0d2d7a
Allow normal base64 sig as well
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 16:17:09 -08:00
Derek Collison
9c667cbdf9
Set internal client to non-default, avoid race
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 10:32:10 -08:00
Derek Collison
be0acfd50c
Merge pull request #848 from nats-io/ping
...
Support server ping for statusz
2018-12-07 09:19:28 -08:00
Derek Collison
c83d7f8851
Support server ping for statusz
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 08:42:01 -08:00
Ivan Kozlovic
c57ff0e26c
Fixed possible deadlock when updating route permissions
...
This bug is only in master, not in any public release.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-07 09:15:05 -07:00
Ivan Kozlovic
95a5f79ac7
Added Gateway test for service import with queue group
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-06 19:13:39 -07:00
Derek Collison
08ca7b5f2a
ServiceImports and queue groups
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 17:52:17 -08:00
Derek Collison
c5ee8b2cff
Server sequences outbound may not appear sequential to other listening servers.
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 16:52:13 -08:00
Derek Collison
4bea6e0002
Test conditional fix
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 15:32:29 -08:00
Derek Collison
bdb42fab54
Don't erase nonce on reload
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 15:09:14 -08:00
Derek Collison
7b0f2426fa
Internal clients aren't weighed against limits
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 14:23:59 -08:00
Derek Collison
ef5764eea0
Bump version, add RTT to StatsZ
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 11:46:14 -08:00
Derek Collison
18bca5603f
Added server version and cluster name to statsz.
...
Fixed account connection accounting sending after local connections is 0.
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 10:57:39 -08:00
Derek Collison
c3a658e1f1
Merge pull request #842 from nats-io/syslimit
...
Enforce account limits on system account too
2018-12-06 09:09:01 -08:00
Derek Collison
c0932df182
test update
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 09:02:47 -08:00
Ivan Kozlovic
6162f14dcc
Merge pull request #840 from nats-io/gw_service_imports
...
Allow service import to work with Gateways
2018-12-06 09:59:03 -07:00
Derek Collison
b9aa2a3da4
Enforce account limits on system account too
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 08:37:22 -08:00
Ivan Kozlovic
a9b045498a
Update based on comments
...
Do the swapping to outbound connection only on send.
It means that those subs are stored in the inbound connection and
those are the only type of subs stored there. So on connection close
it is easy to clean them up.
Also instead of having processMsgResults have to return this sub,
simply check the size of r.psubs and if 1, the type of client
associated with it. If gateway, we know we have to do the direct
send.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-06 09:32:39 -07:00