Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-830

ssl:close/1 regression in OTP 21.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.2
    • Fix Version/s: 21.2.3
    • Component/s: ssl
    • Labels:
      None

      Description

      In previous versions of OTP, the following pattern had the expected behavior:

      ok = ssl:send(Socket, Data), %% send response to client (block while sending)
      ok = ssl:close(Socket). %% close socket after response has been send

      It appears that in OTP 21.2 this behavior has changed such that the Data does not get sent to the client prior to closing the socket.

      This can be observed in the mochiweb test suite: https://travis-ci.org/mochi/mochiweb/builds/478656646

      For this PR https://github.com/mochi/mochiweb/pull/210

        Attachments

          Activity

            People

            Assignee:
            ingela Ingela Anderton Andin
            Reporter:
            etrepum etrepum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: