daltoniam / Starscream

Websockets in swift for iOS and OSX
Apache License 2.0
8.36k stars 1.21k forks source link

Avoid creating multiple URLSessions #1011

Open bgoncal opened 8 months ago

bgoncal commented 8 months ago

Issue Link 🔗

Please attach the link to an issue if it exists.

Goals âš½

What you hope to address within this PR.

Apple guidelines recommend that we don't create several URLSession, also, some users may face POSIXErrorCode(rawValue: 28): No space left on device when a certain number of URLSessions were already created. I don't know all edge cases that this lib handles, so this is just an initial suggestion

Related: https://stackoverflow.com/questions/67318867/error-domain-nsposixerrordomain-code-28-no-space-left-on-device-userinfo-kcf

Implementation Details 🚧

Additional details about the PR.

bgoncal commented 7 months ago

@daltoniam Do you think we can merge this one?

algrid commented 6 days ago

It would be great to merge this fix, I also have this problem with too many URLSessions.