Commit Graph

113 Commits

Author SHA1 Message Date
Derek Collison
647213b1d7 TLS timeout handling for routes 2015-11-22 15:07:44 -08:00
Derek Collison
3b64567f00 tls flags, proper timeouts 2015-11-22 14:43:16 -08:00
Ivan Kozlovic
97da466312 Fix races, add a test and adjust others.
* There was a race during unsubscribe()
* 'go test -race' reports a race in TestSetLogger test. This one could be ignored since we normally invoke SetLogger only on server startup. That being said, Travis failed when I tried to submit a PR for the fix of the unsubscribe race. So proposing to fix the logger too.
2015-11-18 20:39:56 -07:00
Ivan Kozlovic
17d231361d Fix handling of duplicate SUB protocol.
This is issue #136. With routes, it is possible that a subscriber connects (or reconnects) and is about to broadcast the SUB protocol to the routed server, and at the same time, the server sends the list of the local subscriptions. This would result in a SUB processed twice, adding the same sub in the sublist twice. If the server sending the subscription list is restarted, this will leave "detached" subscriptions in the sublist which would trigger the "Bad or Missing ROUTER info" for every message published on that subject.
2015-11-17 20:58:54 -07:00
Derek Collison
688f2a9f64 Give some time for TLS setup 2015-11-08 14:28:43 -08:00
Derek Collison
b8af53e67a Added in clustered TLS 2015-11-08 14:20:01 -08:00
Derek Collison
416cf99068 larger buffer needed for info message 2015-11-08 11:11:03 -08:00
Derek Collison
ec0c658344 Adding in client cert/key pair 2015-11-08 10:58:40 -08:00
Derek Collison
1c7f708217 Added in support for requiring client certificates 2015-11-08 10:48:39 -08:00
Derek Collison
a7b74468dd more cleanup 2015-11-05 18:09:07 -08:00
Derek Collison
5004efe54b new files for TLS 2015-10-22 03:32:11 +02:00
Derek Collison
749d4f89cc First pass at client TLS support 2015-10-22 03:30:27 +02:00
Derek Collison
fe3b8f2aa1 BufSize option, bump for go1.5.1, bump version 2015-09-18 07:41:33 -07:00
Derek Collison
45564dbde2 race fixes, go1.5 on travis 2015-09-17 19:02:00 -07:00
Waldemar Quevedo
093548c072 Update max payload test to reflect behavior change in go client.
Adds logic to test which mimics previous behavior of client.
2015-09-09 21:09:14 -07:00
Derek Collison
47994eaf2c Track performance 2015-08-23 12:51:52 -07:00
Derek Collison
cb47c2e494 fixup for collapsed struct 2015-08-06 01:01:29 -07:00
Derek Collison
075529e2fe Properly handle and enforce max payload 2015-08-05 22:05:58 -07:00
Derek Collison
96acffdc35 Updated copyright, removed commented imports 2015-07-14 10:57:57 -07:00
Derek Collison
90d1d6d572 Much improved large message performance 2015-06-25 13:51:53 -07:00
Derek Collison
96bab33075 fixed import paths 2015-06-19 12:08:11 -07:00
Derek Collison
d9c7392c4d race fixes, tests 2015-06-16 12:48:50 -07:00
Derek Collison
082a43f7ae Additional testing for monitoring 2015-06-16 10:31:15 -07:00
Derek Collison
aabc9a2a7c add in client lang and version reporting, bump limit 2015-06-15 20:58:59 -07:00
Derek Collison
c0daceed68 raise timeouts 2015-06-15 13:02:55 -07:00
Derek Collison
bf9d652e84 close connections for test, return on err for pub 2014-12-19 00:45:54 -06:00
Derek Collison
c44a25e3ef Shutdown servers after test 2014-12-18 23:17:01 -06:00
Derek Collison
b7932fdd2f Added additional tests for requests across routes 2014-12-18 20:14:53 -08:00
Máximo Cuadros Ortiz
65ae9c16f2 extendable auth methods 2014-11-27 00:26:13 +01:00
Derek Collison
65ff554574 Better split buffer testing for CONNECT, fixes issue #63. 2014-11-16 08:58:36 -08:00
Máximo Cuadros Ortiz
96d044dce4 login system abstraction 2014-10-16 00:44:22 +02:00
Máximo Cuadros Ortiz
d85225e56b fixing http test, disabling keepalive 2014-10-06 22:11:13 +02:00
Máximo Cuadros Ortiz
502ba2e43e connz: limit and offset 2014-10-04 22:39:09 +02:00
Máximo Cuadros Ortiz
3cde0eef60 added subsz and connz extended, and merged with varz 2014-10-04 22:38:59 +02:00
Máximo Cuadros Ortiz
9afb590cf9 improved connz with subscriptions stats and list of subscriptions by client 2014-10-04 22:38:59 +02:00
Derek Collison
cfdab7446c Make sure to wait long enough 2014-10-04 22:38:59 +02:00
Derek Collison
9dc875b88e pedantic about over zealous GC for sockets 2014-09-18 21:25:13 -07:00
Derek Collison
bfe88c335c test fixups for 1.3, add in test for leaked route Go routines 2014-07-24 16:01:28 -07:00
Derek Collison
3e86a2cbeb Added cluster restart test with queue subscribers 2014-07-23 17:39:15 -07:00
Alex Toombs
ae0e8e5f53 Write back resolved port to options. 2014-06-06 16:05:37 -07:00
Alex Toombs
8014866791 PR feedback (nits) 2014-06-06 15:49:13 -07:00
Alex Toombs
20b08f5a33 Allow nats to choose a random port when given port -1.
* In order to allow nats to resolve a randomly-chosen port, we want to
  sometimes give net.Listen a port of 0. However, a port of 0 in the
  config resolve to a constant port. In order to avoid behavioral
  changes, we define '-1' to be the default "choose random port"
  number.
* Resolve ports can be retrievd using the server's Addr() method.
2014-06-05 19:48:42 -07:00
Derek Collison
e172f4bdf9 Fixed issue #29 with subscriptions leaking across routes on auto-unsubscribe 2014-04-30 14:18:42 -07:00
Derek Collison
ff2e2d40ae Should receive msgs 2014-04-05 00:06:19 +02:00
Derek Collison
7da1e87748 copyright hygiene 2014-02-06 19:34:12 -08:00
Derek Collison
edc49b7924 Fixes issues #21 and #22 2014-02-06 19:24:11 -08:00
Derek Collison
e01bd2a6f1 go fmt fix 2013-12-12 14:39:51 -08:00
Derek Collison
6cbe515497 Clean up after ourselves 2013-12-12 14:09:40 -08:00
Derek Collison
c9fd57ad6b fix for race in test 2013-12-12 13:59:05 -08:00
Derek Collison
eb5c550f10 Fixed slice panic on MSG_ARG split buffer 2013-12-12 13:11:37 -08:00