Commit Graph

148 Commits

Author SHA1 Message Date
Alex Toombs
8014866791 PR feedback (nits) 2014-06-06 15:49:13 -07:00
Alex Toombs
20b08f5a33 Allow nats to choose a random port when given port -1.
* In order to allow nats to resolve a randomly-chosen port, we want to
  sometimes give net.Listen a port of 0. However, a port of 0 in the
  config resolve to a constant port. In order to avoid behavioral
  changes, we define '-1' to be the default "choose random port"
  number.
* Resolve ports can be retrievd using the server's Addr() method.
2014-06-05 19:48:42 -07:00
Ken Robertson
e6d60881cb Added Server.Addr() helper to allow querying of the server's bound address
This can be useful in testing scenarios by allowing you to have the system pick
a random port by passing 0 on options.Port, but also give the user a way to
query the server for what port it actually bound to.
2014-05-27 09:08:07 -07:00
Derek Collison
e172f4bdf9 Fixed issue #29 with subscriptions leaking across routes on auto-unsubscribe 2014-04-30 14:18:42 -07:00
Derek Collison
cd56514808 pass by address 2014-04-25 13:18:50 -06:00
Derek Collison
2141cc7381 bad copy of file 2014-04-25 13:11:58 -06:00
Derek Collison
ac975a9856 Bumped version 2014-04-25 12:27:40 -06:00
Derek Collison
de4e748b2e Added perf test for defers and parseInt 2014-04-25 11:26:07 -07:00
Eric Malm
89452213bf Make profiling port configurable via file
- Port can be specified with 'prof_port' value in file
- CLI flag overrides config file setting
2014-04-24 18:01:09 -07:00
Derek Collison
98b7482b68 syntax 2014-04-16 09:25:13 -07:00
Derek Collison
7da1e87748 copyright hygiene 2014-02-06 19:34:12 -08:00
Derek Collison
edc49b7924 Fixes issues #21 and #22 2014-02-06 19:24:11 -08:00
Derek Collison
0e47153275 Move to %q to properly print out 2014-01-09 00:04:35 -05:00
Derek Collison
afb456e2ea Bumped version 2014-01-07 18:37:06 -08:00
Derek Collison
c36036541b Fix for MatchLiteral bug, report #18 2014-01-07 18:35:18 -08:00
Derek Collison
ddb54bb154 Need to flush the clients 2013-12-12 14:56:24 -08:00
Derek Collison
eb5c550f10 Fixed slice panic on MSG_ARG split buffer 2013-12-12 13:11:37 -08:00
Derek Collison
4b3c8bc121 Bumped version 2013-12-10 12:51:30 -08:00
Derek Collison
ae94365ca4 Removed setting the Read or Write Buffers.
For some reason, this caused abysmal performance issues on Mac (Mavericks). Still investigating.
2013-12-08 14:52:34 -08:00
Derek Collison
688963fd0a Use shortcut 2013-11-18 16:03:16 -08:00
Derek Collison
9eb4a7bb2d Convert to raw bytes from 1k blocks 2013-10-21 16:06:59 -07:00
Derek Collison
da2a40a878 bumped version 2013-10-18 13:16:51 -07:00
Derek Collison
37f0e42a0e Hold lock for server on iteration 2013-10-18 13:08:29 -07:00
Derek Collison
ee4568883e Move nats-server to gnatsd on logging 2013-10-18 13:03:11 -07:00
Derek Collison
6d0f200aca Don't trace included CR_LF 2013-10-18 13:02:49 -07:00
Derek Collison
b32bc384c4 Fixes for reflective solicited routes 2013-10-18 12:53:47 -07:00
Derek Collison
a50f5674df Better version processing 2013-10-17 12:47:41 -07:00
Derek Collison
fe89d996f3 Bumped version 2013-10-16 10:58:30 -07:00
Derek Collison
f0d98db3c4 Handle errors over routes better 2013-10-16 10:46:03 -07:00
Derek Collison
bd0bb5d52c Properly process INFO messages from routes. 2013-10-16 08:44:59 -07:00
Derek Collison
2ebad0f182 Bumped version 2013-10-14 22:29:33 -07:00
Derek Collison
8943283fa9 Allow multiple shutdown calls 2013-10-14 22:28:32 -07:00
Derek Collison
d21e2caf8c golint updates 2013-10-13 09:52:51 -07:00
Derek Collison
4e1502cc4c README license, copyright cleanup, etc 2013-09-30 10:16:43 -07:00
Derek Collison
7302d17c2e Bumped version 2013-08-19 15:10:05 -07:00
Derek Collison
6ab5d6a337 Fixed msg payload accounting, made http monitoring work in Go routines 2013-08-19 15:09:41 -07:00
Derek Collison
d322939b17 gofmt 2013-08-19 12:16:30 -07:00
Derek Collison
a2c6cc309d bumped version 2013-08-19 12:14:48 -07:00
Derek Collison
8fa318738c Attach /r/n to msg to avoid extra write. Fix auth checks 2013-08-19 12:14:29 -07:00
Derek Collison
c7ec32b2e0 Make checking authTimer cheaper 2013-08-16 06:46:50 -07:00
Derek Collison
0463533904 Transfer scratch buffer to client struct off of stack 2013-08-15 17:07:26 -07:00
Derek Collison
20794e9307 Bumped version 2013-08-14 05:20:42 -04:00
Derek Collison
122f06816e spelling 2013-08-06 11:24:03 -07:00
Derek Collison
60f4c67bbf Cleaner way of handling the initial sends 2013-08-03 14:24:19 -07:00
Derek Collison
1386470005 Fixed bug where connection closed before sendInfo 2013-08-03 12:58:10 -07:00
Derek Collison
4a8faf1d75 Pidfile support 2013-08-02 17:13:04 -07:00
Derek Collison
cf0f30200f log file support, data race fixes 2013-08-02 16:52:54 -07:00
Derek Collison
0b8718a67d flag/config parsing of log and pid files 2013-08-01 12:36:20 -07:00
Derek Collison
a9ca803fc2 Bumped version 2013-07-30 19:26:06 -07:00
Derek Collison
f27deeabee Added official start method 2013-07-30 19:23:26 -07:00