Files
nats-server/test
Tyler Treat fa50a2c145 [FIXED] Authorization Timeout and TLS
When TLS and authorization is enabled, the authorization timeout can
fire during the TLS handshake, causing the server to write the
authorization timeout error string into the client socket, injecting
what becomes bad data into the TLS handshake. This creates misleading
errors on the client such as tls: oversized record received with length
21024.

This moves the authorization timeout scheduling to after the TLS
handshake to avoid the race. This should be safe since TLS has its own
handshake timeout. Added a unit test that fails with the old behavior
and passes with the new. LMK if you can think of a better way to test
this.

Fixes #432
2017-05-17 14:38:02 -05:00
..
2017-04-20 12:41:48 -07:00
2016-04-05 10:52:40 -07:00
2016-02-06 07:41:37 -08:00
2017-03-01 20:46:47 -07:00
2015-09-17 19:02:00 -07:00
2017-01-24 19:34:17 -07:00
2017-05-09 16:16:15 +08:00
2016-04-22 13:03:04 -06:00
2017-04-20 12:41:48 -07:00