Commit Graph

180 Commits

Author SHA1 Message Date
Máximo Cuadros Ortiz
65ae9c16f2 extendable auth methods 2014-11-27 00:26:13 +01:00
Máximo Cuadros Ortiz
54ac589d82 Client: missing Debugf, Noticef and Tracef methods 2014-11-25 23:38:58 +01:00
Máximo Cuadros Ortiz
8a1a1925c8 fixing fatalf behaviour 2014-11-25 23:21:35 +01:00
Derek Collison
2a6dc7344f Bumped version 2014-11-16 12:37:46 -08: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
Ken Robertson
5623b583a9 Updates for new logging to appease govet
Govet doesn't like functions that look like format handlers not ending in `f`,
such as Debug() vs Debugf(). This is changing some of the new log handling to
use 'f' function names to appease govet.

Updated the implicit handling of including the client as an arg without being
used in a format string. Now the client object simply has a Errorf function
for logging errors and it adds itself onto the format string.
2014-10-29 11:32:14 -07:00
Máximo Cuadros Ortiz
7c7578ae38 Notice and Logger messages 2014-10-16 01:16:21 +02:00
Máximo Cuadros Ortiz
d99c6aeead remote syslog support 2014-10-16 00:45:44 +02:00
Máximo Cuadros Ortiz
6586ac4653 better client identification at logs and some performances improves 2014-10-16 00:44:56 +02:00
Máximo Cuadros Ortiz
96d044dce4 login system abstraction 2014-10-16 00:44:22 +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
1c6947ad52 Fix log calls 2014-09-18 21:35:26 -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
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
62c5c4d229 Release version 0.5.6 2014-09-10 16:21:54 -07:00
Ken Robertson
8ccf0a8bb8 Fix gofmt issues 2014-08-12 23:06:01 -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
a48084a2af Make sure to account for route connections 2014-07-24 16:01:50 -07:00
Derek Collison
13d256b8cc Fix minor races, add in 1.3 to testing, bump version 2014-07-24 08:03:04 -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
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
e172f4bdf9 Fixed issue #29 with subscriptions leaking across routes on auto-unsubscribe 2014-04-30 14:18:42 -07:00
Derek Collison
cd56514808 pass by address 2014-04-25 13:18:50 -06:00
Derek Collison
2141cc7381 bad copy of file 2014-04-25 13:11:58 -06:00
Derek Collison
ac975a9856 Bumped version 2014-04-25 12:27:40 -06:00
Derek Collison
de4e748b2e Added perf test for defers and parseInt 2014-04-25 11:26:07 -07:00
Eric Malm
89452213bf Make profiling port configurable via file
- Port can be specified with 'prof_port' value in file
- CLI flag overrides config file setting
2014-04-24 18:01:09 -07:00
Derek Collison
98b7482b68 syntax 2014-04-16 09:25:13 -07: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
0e47153275 Move to %q to properly print out 2014-01-09 00:04:35 -05:00
Derek Collison
afb456e2ea Bumped version 2014-01-07 18:37:06 -08:00
Derek Collison
c36036541b Fix for MatchLiteral bug, report #18 2014-01-07 18:35:18 -08:00
Derek Collison
ddb54bb154 Need to flush the clients 2013-12-12 14:56:24 -08:00
Derek Collison
eb5c550f10 Fixed slice panic on MSG_ARG split buffer 2013-12-12 13:11:37 -08:00
Derek Collison
4b3c8bc121 Bumped version 2013-12-10 12:51:30 -08:00