Commit Graph

821 Commits

Author SHA1 Message Date
Ivan Kozlovic
a8ff707aff Fix INFO_ARG parsing
In split buffer conditions, a buffer is used to accumulate bytes.
After processing, this buffer needs to be reset.

Resolves #270
2016-05-11 15:51:29 -06:00
Derek Collison
26caad27c1 Clear subs activity cache 2016-05-09 13:56:34 -07:00
Derek Collison
3ff8ad706a v0.8.0 release v0.8.0 2016-05-09 12:47:31 -07:00
Derek Collison
bf32f1972d Merge pull request #268 from nats-io/last
Ignore client pings for last connection activity
2016-05-09 10:06:15 -07:00
Derek Collison
fd27025aa3 Ignore client pings for last connection activity 2016-05-09 09:56:38 -07:00
Derek Collison
0378f6d7e1 Merge pull request #266 from nats-io/update-win-pse
Update PSE for Windows
2016-05-05 22:47:18 -07:00
Colin Sullivan
26dab3bf8a Update PSE for Windows
* Call into the performance counter API directly
* Incorporate caching to reduce load on the server
2016-05-05 23:31:05 -06:00
Derek Collison
099aaa3dcb Merge pull request #265 from nats-io/pse_linux
Add sampling for pcpu
2016-05-05 14:10:40 -07:00
Derek Collison
137c2d0109 Add sampling for pcpu 2016-05-05 13:55:23 -07:00
Derek Collison
8e95269db7 Merge pull request #263 from nats-io/cov
Coverage increase for conf parser and lexer
2016-05-04 17:18:51 -04:00
Derek Collison
296227e46e parse test coverage 2016-05-04 13:59:48 -07:00
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