-
Notifications
You must be signed in to change notification settings - Fork 497
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
Connections not closed with NIO #1501
Comments
@mbarnach could you tell me which version of NIO was resolved? |
@Davidde94 I'm still having the issue with the 2.20.2 (latest). I've tried some previous version also, with no luck. |
@mbarnach thanks for that. I'm having difficulty reproducing with
I've then created 3 terminals and run Could you walk me through an exact reproduction? |
Are you compiling with NIO on for Kitura? Like |
Yep!
|
How're you making the connections? |
I'm usually using POSTMAN. Let me try to reproduce your setup to see if I get the same behaviour. |
I'm able to reproduce with postman, I suspect it's something todo with |
This seems suspiciously similar: https://community.postman.com/t/terminate-connection/2351 |
Running multiple requests via |
When settings |
Alright I think I have a reproduction. Let me have a look and get back to you. |
Sorry for the delay, it's a busy time here at Apple. I had a look again today and found the source of the issue. It's a minor fix in Kitura-NIO. Details are here: Kitura/Kitura-NIO#241 |
Context and Description
When using compiling Kitura with Swift NIO, the connections are not released.
This can be easily demonstrated with a simple application limiting the number of simultaneous connections to 2.
Then calling the server more than 2 times will always return a 503.
It seems that this behaviour is affect both Linux and MacOS.
Environment Details
Tried on MacOS 10.15.3 with Swift 5.1.3 and Kitura 2.9.1
Same on Linux with Swift 5.1.5 and Kitura 2.9.1 (Docker swift:5.1.4)
This issue doesn't affect Kitura without NIO!
Could it be a reason for the issue #1499?
Steps to Reproduce
Expected vs. Actual Behaviour
- Connections available again after some time
- Connections never get available
The text was updated successfully, but these errors were encountered: