Commit Graph

789 Commits

Author SHA1 Message Date
Derek Collison
06cc95ac54 don't version the binary 2016-04-25 15:22:36 -07:00
Derek Collison
bee722cb3a Explicit go version for release builds 2016-04-25 14:57:38 -07:00
Derek Collison
3c3a9aa2d0 golang update to 1.6.2 2016-04-25 09:42:26 -07:00
Derek Collison
603011d0e6 Merge pull request #252 from nats-io/fix_win_build
Fix Windows build
2016-04-22 18:36:37 -07:00
Derek Collison
12fdd5dead Merge pull request #256 from nats-io/fix_data_race
Fix data race
2016-04-22 18:28:31 -07:00
Derek Collison
e45072f403 Merge pull request #254 from nats-io/more_test_coverage
Add more code coverage
2016-04-22 18:27:34 -07:00
Ivan Kozlovic
3691d14426 Fix missing capture of remoteID in removeClient
This needed to be captured under the client lock. Adding a test
that captured the races (when running enough times).
2016-04-22 18:06:38 -06:00
Ivan Kozlovic
3850b05388 Fix data race
When processing a connect request, there was a risk of race condition
when the server was being shutdown. Capture fields that are checked
under lock and lock when setting the route's remote ID.

Resolves #255
2016-04-22 17:28:41 -06:00
Ivan Kozlovic
acddee9c4a Fix flapping test 2016-04-22 17:10:33 -06:00
Ivan Kozlovic
dc906fdd89 Add code coverage for File logger 2016-04-22 17:00:13 -06:00
Ivan Kozlovic
a5c393f79a Add check for route TLS handshake error 2016-04-22 16:18:59 -06:00
Ivan Kozlovic
16bd806c46 Move definition of tls usage outside of function that prints it 2016-04-22 15:22:04 -06:00
Colin Sullivan
88af5f193a Add TestTlsCipher. 2016-04-22 15:00:19 -06:00
Ivan Kozlovic
2b8891364a Add more code coverage for server's parser
Test error conditions.
2016-04-22 14:41:19 -06:00
Ivan Kozlovic
ad1198db85 Add code coverage
-Test coverage was no longer triggered due to the check for BUILD_GOOS
 environment variable that was removed. Removed the check.
-Re-run test package with server code coverage.
-Remove unused functions in test.go.
-Add test for a function in test.go.
-Add missing parse +OK test.
2016-04-22 13:03:04 -06:00
Ivan Kozlovic
7a43747107 Remove comment 2016-04-22 07:45:20 -06:00
Derek Collison
91b69f1f36 Merge pull request #250 from nats-io/wait_for_routes_go_routines
Ensure Shutdown() waits for outstanding go routines
2016-04-22 03:29:03 -07:00
Ivan Kozlovic
bff3603606 Fix Windows build
Code referenced Debugf which is not available in this package
2016-04-21 18:34:24 -06:00
Ivan Kozlovic
3a999c1299 Add tracking of most go routines started by the server
Refactor the way client is initialized. We need to ensure that
clients are not added to the clients map and readLoop started if
the server is in the process of being shutdown otherwise there
is a chance that the server already gathered the list of connections
to close and this one would not be included, leaving a readLoop
running.
Same occurs for routes, with the complexity that the readLoop is
started well before the route connection is added to the server
routes' list. We need a temporary map that contains those connections
to be able to close them on server Shutdown.

Fixed some flapping tests.
2016-04-21 11:48:39 -06:00
Ivan Kozlovic
3aa09ecc01 Ensure Shutdown() waits for outstanding routes go routines
We need to make sure that when Shutdown() returns, routes go routines
that try to connect or reconnect have returned. Otherwise, this may
affect tests running one after the other (a server from one test
may connect to a server in the next test).
2016-04-21 11:48:39 -06:00
Derek Collison
f81d57c0a3 Merge pull request #251 from nats-io/rename
Rename
2016-04-21 09:57:35 -07:00
Derek Collison
88f73b0029 Only linux for travis 2016-04-21 09:33:42 -07:00
Derek Collison
5bea74c2ed Rename and move some things around 2016-04-21 09:33:26 -07:00
Derek Collison
6004a4e528 Update copyright 2016-04-18 20:31:56 -07:00
Derek Collison
34a75bbe15 Merge pull request #249 from nats-io/win-pse
Windows procUsage implementation and test
2016-04-18 20:30:46 -07:00
Derek Collison
ebd624943b Merge pull request #248 from nats-io/release_process
Release process
2016-04-18 20:25:26 -07:00
Derek Collison
93e0b749f6 Allow tagged release names 2016-04-18 20:00:21 -07:00
Derek Collison
f60119d332 Add in auto release builds, matrix and coverage for only one run 2016-04-18 20:00:02 -07:00
Colin Sullivan
b40cb9704d Use Argv[0] to get process ID, test updates, increase coverage. 2016-04-18 15:40:00 -06:00
Colin Sullivan
be6416c832 Windows PS Emulation and Test 2016-04-18 10:09:00 -06:00
Derek Collison
ce8d752395 Merge pull request #245 from nats-io/dyn_write
Dynamic writes
2016-04-15 19:50:39 -07:00
Derek Collison
0cb85b18ec remove need for atomic 2016-04-15 18:32:19 -07:00
Derek Collison
b3388db53f Enable dynamic write buffers for client connections 2016-04-15 18:16:13 -07:00
Derek Collison
4f333416bb Revert race on interest graph since it could cause dropped interest propogation, fix test instead 2016-04-15 15:46:29 -07:00
Derek Collison
3e2c3714bc Fix race in interest propogation to new routes 2016-04-15 13:16:13 -07:00
Derek Collison
dda20f227e Merge pull request #241 from nats-io/unquote_ipaddr
conf: Allow raw IPAddr and raw string in arrays
2016-04-07 09:03:43 -07:00
Derek Collison
be4d2d4e89 Batteries included 2016-04-07 08:58:53 -07:00
Derek Collison
433d62ec0a Parse IPs and raw strings in arrays properly 2016-04-07 08:36:57 -07:00
Derek Collison
9bf172cf43 Merge pull request #239 from nuss-justin/remove-allocation-2
Remove allocation when inserting into sublist
2016-04-06 08:47:39 -07:00
Justin Nuß
e4d111fa0a Remove allocation when inserting into sublist 2016-04-06 14:15:26 +02:00
Derek Collison
06e121a05e Merge pull request #238 from nats-io/vendor
Vendor
2016-04-05 13:33:25 -07:00
Derek Collison
812b1b3747 pull nats for tests from master 2016-04-05 10:56:23 -07:00
Derek Collison
21ec036da4 Add in vendor support 2016-04-05 10:52:40 -07:00
Derek Collison
0db7adb6b1 Merge pull request #237 from nuss-justin/remove-allocation-1
Remove an unnecessary string allocation
2016-04-05 08:28:58 -07:00
Justin Nuß
4bf0b47e74 Remove unnecessary string allocation 2016-04-05 15:25:55 +02:00
Derek Collison
de48a4b4a5 Remove build trigger for now 2016-04-04 19:12:25 -07:00
Derek Collison
7761ecd740 Added darwin, updated to Go1.6 2016-04-04 19:01:18 -07:00
Derek Collison
113c0a9173 Merge pull request #200 from zquestz/cross_compile
Added travis cross compilation support for linux/solaris/windows
2016-04-04 18:52:22 -07:00
Derek Collison
0bb362601e Revert back to ps callout.
Going back to ps callout on MacOSX to avoid cgo for pending
changes to release process.
2016-04-04 18:50:13 -07:00
Derek Collison
4a627300f9 Merge pull request #236 from nats-io/dynamic_read_buffers
Dynamic read buffers
2016-04-03 14:48:05 -07:00