Commit Graph

350 Commits

Author SHA1 Message Date
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
Julian Friedman and Zach Robinson
79c45db605 No longer add subscriptions to router clients with no existing connection.
race condition:
 - a client is closed at the same time as an incoming SUB message occurs.
 - the subscription is added to the srv.sl even though the socket is
   closed.
 - the connection cleanup has already run, so the bad state is never
   corrected
 - now messages may be forwarded to a client without a connection
 - messages will not be forwarded to a router that needs it now, because
   processMsg assumes the router already received it
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
1c6947ad52 Fix log calls 2014-09-18 21:35:26 -07:00
Derek Collison
9dc875b88e pedantic about over zealous GC for sockets 2014-09-18 21:25:13 -07:00
Derek Collison
24d3ad3e3a rand contention TODO 2014-09-18 21:24:49 -07:00
Derek Collison
68ce4b41ba function closures 2014-09-18 21:24:09 -07:00
Derek Collison
dc35bc8d2e Merge pull request #44 from fraenkel/stale_reconnect
Let readLoop do the closeConnection magic on any error
2014-09-15 10:50:19 -07:00
Derek Collison
802c6075b8 Merge pull request #47 from fraenkel/remove_race
Prevent duplicate routes properly
2014-09-15 10:48:10 -07:00
Derek Collison
72a4386481 Merge pull request #46 from fraenkel/self_reference
Check port when removing self referenced routes
2014-09-15 10:45:04 -07:00
Derek Collison
ce52c25376 Merge pull request #45 from fraenkel/varz
Add routes and remotes to varz
2014-09-15 10:42:53 -07:00
Michael Fraenkel
7a7b19e8c1 Prevent duplicate routes properly
* Guarantee lock when checking & adding a route
* Upgrade to a solicited route if one is seen
* Fix race issue when setting the remoteID
2014-09-13 22:06:43 -05:00
Michael Fraenkel
eec4786a2c Check port when removing self referenced routes
* Cleanup how self referenced routes were determined
2014-09-13 17:24:41 -05:00
Michael Fraenkel
c9a4e4a8e5 Add routes and remotes to varz 2014-09-13 15:57:31 -05:00
Michael Fraenkel and Zach Robinson
c5db2a03a3 Let readLoop do the closeConnection magic on any error
clearConnection will close the socket, but defer to readLoop to clean
up the client's connection
2014-09-12 11:20:57 -07:00
Derek Collison
509ed9f45c nats.io link 2014-09-10 17:18:01 -07:00
Derek Collison
62c5c4d229 Release version 0.5.6 v0.5.6 2014-09-10 16:21:54 -07:00
Phil Pennock
9836f28e53 Merge branch 'note_versions'
Improves guidance on building with Go, and requirements of Go
versioning.
2014-08-26 20:14:04 -04:00
Phil Pennock
72f59fb53f Add build instructions & version constraint notes
We take too much Go-specific knowledge for granted; provide hints and
guidance in the `README.md` to better guide those new to Go.
2014-08-26 19:55:02 -04:00
Ken Robertson
8ccf0a8bb8 Fix gofmt issues 2014-08-12 23:06:01 -07:00
Ken Robertson
dacf0e033a Fix Travis to properly fail the build on go fmt and go vet.
When running go fmt/vet, they do not exit non-zero if they detect any issues,
they only print out information. This wraps go fmt/vet in a script that
captures the output to a temp file and checks if anything was written to it.
If any was, it prints it out then exits 1.
2014-08-12 23:03:38 -07:00
Derek Collison
39e7050187 Merge pull request #39 from WuLonghui/hw-issue-1
Use authTimeout in setAuthTimer
2014-08-12 07:40:20 -07:00
w00228948
31bc0bdb8c Use authTimeout in setAuthTimer 2014-08-12 17:55:59 +00:00
Derek Collison
c01c3e15d9 Merge pull request #34 from simonleung8/selfReferenceFix
Remove self-referencing ip/host in route configs and log a warning.
2014-07-31 11:14:39 -07:00
Simon Leung
afc9f6222f remove self referencing ip/host
Signed-off-by: Jonathan Berkhahn <jaberkha@us.ibm.com>
2014-07-31 10:30:43 -07:00
Derek Collison
7e198fb2f8 Changed travis image link. v0.5.4 2014-07-25 13:29:32 -07:00
Derek Collison
11afe75636 Merge pull request #37 from apcera/coveralls.yml
Should have been included from the coveralls instructions to know more.
2014-07-25 13:18:56 -07:00
Jonathon Klobucar
683bbc671b Should have been included from the coveralls instructions to know more.
https://coveralls.io/docs/supported_continuous_integration
2014-07-25 13:16:58 -07:00
Derek Collison
a8c9c6dd2d Merge pull request #36 from apcera/add-coveralls
Add a small script to run the tests and report to coveralls in travis.
2014-07-25 13:11:36 -07:00
Jonathon Klobucar
2661e88113 Add a small script to run the tests and report to coveralls in travis. 2014-07-25 13:04:53 -07:00
Derek Collison
ec72a05277 Just test 1.3 2014-07-24 16:13:41 -07:00
Derek Collison
a48084a2af Make sure to account for route connections 2014-07-24 16:01:50 -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
13d256b8cc Fix minor races, add in 1.3 to testing, bump version 2014-07-24 08:03:04 -07:00
Derek Collison
c0941c99a8 Docker support for generating single executable image 2014-07-23 17:39:59 -07:00
Derek Collison
3e86a2cbeb Added cluster restart test with queue subscribers 2014-07-23 17:39:15 -07:00
Derek Collison
0464ad3512 Reload config option.
This will be useful to be able to turn on and off debug and/or trace flags for logging.
2014-06-19 15:54:45 -07:00
Derek Collison
bdb94fc399 Added some 1.3 options. 2014-06-19 13:47:38 -07:00
Alex Toombs
a364e852ca Merge pull request #32 from apcera/allow-external-listener
Allow nats to choose a random port when given port -1
2014-06-09 10:11:31 -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
76aa5a2a01 Merge pull request #31 from apcera/add-addr-helper
Added Server.Addr() helper to allow querying of the server's bound address
2014-05-27 09:23:53 -07:00
Ken Robertson
e6d60881cb Added Server.Addr() helper to allow querying of the server's bound address
This can be useful in testing scenarios by allowing you to have the system pick
a random port by passing 0 on options.Port, but also give the user a way to
query the server for what port it actually bound to.
2014-05-27 09:08:07 -07:00
Derek Collison
4a522014f6 Moved travis status. 2014-05-08 13:25:36 -07:00
Derek Collison
e172f4bdf9 Fixed issue #29 with subscriptions leaking across routes on auto-unsubscribe v0.5.2 2014-04-30 14:18:42 -07:00