Commit Graph

810 Commits

Author SHA1 Message Date
Derek Collison
9b41ee00aa lex coverage 2016-05-04 12:52:52 -07:00
Derek Collison
8a2af1ec21 don't test coverage on test 2016-05-04 11:23:48 -07:00
Derek Collison
1ebf896980 Fixup for default options 2016-05-03 16:51:23 -07:00
Derek Collison
b5a1365349 Set default host for cluster 2016-05-03 16:44:32 -07:00
Derek Collison
efc262951b Merge pull request #262 from nats-io/move_usage
Move usage.go from server to main package
2016-05-03 19:25:45 -04:00
Ivan Kozlovic
830fb73e44 Remove usage.go and move its content into main.go 2016-05-03 17:15:58 -06:00
Ivan Kozlovic
b36e9fe137 Move usage.go from server to main package 2016-05-03 16:51:57 -06:00
Derek Collison
7b33905db5 beta2 2016-05-03 13:00:18 -07:00
Derek Collison
e8b079951c Merge pull request #261 from nats-io/include-win-pse-test
Update the Windows PSE Test
2016-05-02 18:17:39 -04:00
Colin Sullivan
79b4e6be10 While locally tested, this test wasn't being run with the original enhancement.
* Include the test for windows
* Call ProcUsage (versus procUsage), as test was moved.
2016-05-02 15:25:07 -06:00
Derek Collison
cd07cc377c Merge pull request #260 from nats-io/fix_flapper
Fix flapping test
2016-04-26 17:16:34 -07:00
Ivan Kozlovic
bb81a37cdc Fix flapping test
Introduce sleep when checking activity updates. I had fixed it
originally for Windows and then made it for all platform recently
but only for the publish case. I missed the subscribe test.
2016-04-26 18:14:01 -06:00
Derek Collison
4b20f9d933 Merge pull request #259 from nats-io/add_test_for_total_connections
Add test for Connz Total connections
2016-04-26 17:06:28 -07:00
Ivan Kozlovic
19ea9c5a60 Add test for Connz Total connections 2016-04-26 18:00:58 -06:00
Derek Collison
062172926f Merge pull request #258 from nats-io/add_total_live_connz
Add a live connection count to connz monitoring.
2016-04-26 16:56:15 -07:00
Colin Sullivan
8a07a02a97 Rename the field to 'total'. 2016-04-26 17:49:09 -06:00
Colin Sullivan
19d4848008 Access server clients within lock. 2016-04-26 17:34:03 -06:00
Colin Sullivan
a6dfe88746 Add a live connection count to /connz monitoring. 2016-04-26 17:24:01 -06:00
Derek Collison
83a2b3c595 Merge pull request #257 from nats-io/update_readme_with_cluster_example
Add clustering example in README
2016-04-26 15:08:54 -07:00
Ivan Kozlovic
dbfa9a713a Add clustering example in README 2016-04-26 16:03:15 -06:00
Derek Collison
36689b03c8 updates for release prep 2016-04-26 13:51:13 -07:00
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