Commit Graph

389 Commits

Author SHA1 Message Date
Derek Collison
b2eca2ced4 pid prefix optional, fixup tests 2015-01-09 19:02:56 -08:00
Derek Collison
7b6fd2b4b6 Added check for log redirect 2015-01-09 19:02:33 -08:00
Derek Collison
05a3e658e2 Bumped version 2015-01-09 18:47:46 -08:00
Derek Collison
651d169dfd Changes to trace logging output, bug fixes 2015-01-09 18:47:16 -08:00
Derek Collison
eaf20c2667 minor updates 2015-01-09 18:46:31 -08:00
Derek Collison
c513bdd89a Log modifications
Several modifications, added [pid] prefix to loggers, changed classifications to 3 characters only, and turn off colors if being redirected to a file.
2015-01-09 18:44:53 -08:00
Derek Collison
ad9ccb1224 Copyright updates 2015-01-07 16:58:29 -08: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
48f6086f34 Fixed some debug logging 2014-12-18 20:15:12 -08:00
Derek Collison
b7932fdd2f Added additional tests for requests across routes 2014-12-18 20:14:53 -08:00
Derek Collison
4ccb49c307 Merge pull request #67 from mcuadros/auth
Extendable auth methods
2014-12-15 18:29:53 -08:00
Derek Collison
907efd695a Back to 0.5.6 2014-12-04 20:13:38 -08:00
Derek Collison
22b5f5ec16 Added release tag. 2014-12-04 19:58:33 -08:00
Máximo Cuadros Ortiz
65ae9c16f2 extendable auth methods 2014-11-27 00:26:13 +01:00
Derek Collison
c93d2e84c2 Merge pull request #66 from mcuadros/master
Client: missing Debugf, Noticef and Tracef methods
2014-11-26 14:20:20 -08: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
314ff5117d Merge pull request #65 from raff/windows_syslog
There is no log/syslog package for windows. Providing a dummy syslogger
2014-11-24 10:17:42 -08:00
Raffaele Sena
5e58383a32 There is no log/syslog package for windows. Providing a dummy syslogger
(but actually it logs to stdout)
2014-11-24 07:51:35 -08:00
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