Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11549] Siwft 5.1 URLSession on Linux fails to handle multiple concurrent requests #3287

Open
mman opened this issue Sep 30, 2019 · 1 comment

Comments

@mman
Copy link

mman commented Sep 30, 2019

Previous ID SR-11549
Radar None
Original Reporter @mman
Type Bug
Environment

Linux swift 5.1 official docker images.

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, 5.1Regression
Assignee None
Priority Medium

md5: c3716475689507449e1c8bc858645f4f

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

@weissi
Copy link
Member

weissi commented Oct 2, 2019

I'm almost certain the root cause for this is https://bugs.swift.org/browse/SR-11557

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants