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

Stuck in ssl:send when internal_active_n != 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Help Wanted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ssl
    • Labels:
      None

      Description

      This issue only occurs on Windows. Tested on Windows 10.

      This is a followup to https://bugs.erlang.org/browse/ERL-960 where the attached test case now works reliably, but the more general problem seems to remain.

      I have test cases that heavily send data via ssl:send. When a single test is run, there is typically no problem. When multiple tests run at the same time and internal_active_n=1 there is no problem. When multiple tests run at the same time and internal_active_n=$DEFAULT then the ssl:send gets stuck.

      I do not have an easy to use test case to reproduce this issue. On the other hand it should be reproducible by cloning Ranch and running a specific test suite. I can reproduce this with all versions of OTP >= 22.0 at least.

      git clone https://github.com/ninenines/ranch

      cd ranch

      git checkout windows-ssl-active-n

      make ct-sendfile t=ssl

      You should have timeouts and timetrap timeouts. If I remove the timetrap timeout then the tests simply never finish.

      I'd appreciate help in solving this issue.

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            essen essen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: