Azure / azure-relay-node

☁️Node.js library for Azure Relay Hybrid Connections
https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-what-is-it
MIT License
12 stars 15 forks source link

Add configurable keepAlive interval to detect half-open connections #34

Closed bainian12345 closed 5 years ago

bainian12345 commented 5 years ago

Send pong at a keepAliveInterval to ensure the control connection is not half-open

bainian12345 commented 5 years ago
  connectControlChannel(server);

Reconnect needs a delay, will do it in a separate PR #Resolved


Refers to: hyco-https/lib/HybridConnectionHttpsServer.js:418 in a1c19bf. [](commit_id = a1c19bfff9495e18a3c07f5ea6b3bde1400d5d8f, deletion_comment = False)

dlstucki commented 5 years ago
  connectControlChannel(server);

delay after a failed re connect. The first re-connect attempt after being connected should not have any delay.


In reply to: 523198907 [](ancestors = 523198907)


Refers to: hyco-https/lib/HybridConnectionHttpsServer.js:418 in a1c19bf. [](commit_id = a1c19bfff9495e18a3c07f5ea6b3bde1400d5d8f, deletion_comment = False)