Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
5.5.3
-
None
-
Untriaged
-
Unknown
Description
Recently we have seen an issue or two in the field where REST requests against the TLS endpoint hang indefinitely. This looks to be associated with mochiweb ssl acceptor processes getting stuck forever.
There are two possible cases when mochiweb ssl acceptor processes can get stuck:
1) Remote end establishes tcp connection and disappear somewhere in the middle of tls handshake. Since acceptor doesn't have any timeout, it will wait forever;
2) It's possible that because of unknown bug in tls connection fsm process can get stuck. Specifying timeout in ssl:ssl_accept/2 will not help in this case
Since we don't know for sure which one of them is the root cause we should protect from both.