synrc / n2o

⭕ N2O: Distributed WebSocket Application Server ISO 20922
https://ws.n2o.dev
Other
1.34k stars 168 forks source link

fix potential transition process leak #271

Closed fxmy closed 8 years ago

fxmy commented 8 years ago

Currently the transition process will wait indefinitely for Transision ACK. This will lead to process leaks if websocket handshake is never done in the first place. (e.g. when using tools like curl)

This patch adds configurable timeout option, cause magical numbers are bad and naming things is bloody hard. ⎝( OωO)⎠