Uploaded image for project: 'Swift'
  1. Swift
  2. SR-11549

Siwft 5.1 URLSession on Linux fails to handle multiple concurrent requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Foundation
    • Labels:
    • Environment:

      Linux swift 5.1 official docker images.

      Description

      I have made a simple test program that repeatedly fires multiple concurrent HTTP POST requests against a server, StatHat.com in the example.

      The program sends 30 simultaneous requests every 30 seconds and works great under Swift 5.0 under Linux and Mac, and fails under Swift 5.1 Linux. Works under Swift 5.1 Mac.

      https://github.com/mman/swifty-request-failer

       

      The expected output is that all https requests finish within several seconds with HTTP status code 204. Under Linux 5.1 couple of them do finish but rest starts timing out with error code 1001.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mman Martin Man
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: