Commit Graph

369 Commits

Author SHA1 Message Date
Derek Collison
5885816948 Lowercased G 2014-11-16 12:40:31 -08: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
Derek Collison
7341e4b48c Updated 2014-11-16 08:56:03 -08:00
Derek Collison
1dc2f95ada Merge pull request #59 from apcera/log-vet-fixes
Updates for new logging to appease govet
2014-10-29 12:04:50 -07: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
Ken Robertson
bc84847123 Update the gofmt and govet to be forwards compatible
Newer versions of gofmt and govet will exit non-zero if they find any issues.
This simply sets -e to ensure the scripts will also exit non-zero to properly
trigger a build failure.
2014-10-15 16:54:20 -07:00
Ken Robertson
82ab50fe83 Merge pull request #54 from mcuadros/logger
logging system, syslog and abstraction improvements
2014-10-15 16:37:40 -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
Derek Collison
7fb5358610 Merge pull request #56 from apcera/fix-coveralls-report
Travis file was making the coveralls report think everything was master.
2014-10-07 22:06:13 -07:00
Jonathon Klobucar
738227a7e5 Travis file was making the coveralls report think everything was master. 2014-10-07 21:14:55 -07:00
Derek Collison
0d2688d3a2 Merge pull request #53 from mcuadros/master
improved connz with subscriptions stats and list of subscriptions by client
2014-10-06 13:56:18 -07: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
7d820b762f Merge pull request #51 from zrob/stale_subs_rebase
Retry: Fix subscription sharing/route reconnect race that causes some clients not to receive messages
2014-09-18 22:51:40 -07:00
Julian Friedman and Zach Robinson
6ed7227371 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-09-18 22:36:13 -07:00
Derek Collison
3d4a965193 Make sure to wait long enough 2014-09-18 21:52:41 -07:00
Derek Collison
16891809c2 Merge pull request #50 from apcera/test_cleanup
Test cleanup
2014-09-18 21:45:48 -07: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