forked from nats-io/nats-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Gateway: connect could fail due to PING sent before CONNECT
When a gateway connection was created (either accepted or initiated) the timer to fire the first PING was started at that time, which means that for an outbound connection, if the INFO coming from the other side was delayed, it was possible for the outbound to send the PING protocol before the CONNECT, which would cause the accepting side to close the connection due to a "parse" error (since the CONNECT for an inbound is supposed to be the very first protocol). Also noticed that we were not setting the auth timer like we do for the other type of connections. If authorization{timeout:<n>} is not set, the default is 2 seconds. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Showing
2 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters