Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-36391

Mochiweb acceptors can hang forever if tls handshake freezes

    XMLWordPrintable

Details

    • 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. 

       

      Attachments

        For Gerrit Dashboard: MB-36391
        # Subject Branch Project Status CR V

        Activity

          People

            ankit.prabhu Ankit Prabhu
            timofey.barmin Timofey Barmin
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty