After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794340 - Need to recreate UDP sockets on errors on iOS 10+
Need to recreate UDP sockets on errors on iOS 10+
Status: RESOLVED FIXED
Product: gssdp
Classification: Other
Component: General
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-14 23:33 UTC by Olivier Crête
Modified: 2019-02-22 09:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gssdp-client: Recreate socket on errors (6.27 KB, patch)
2018-03-14 23:33 UTC, Olivier Crête
none Details | Review
gssdp-client: Recreate socket on errors (6.30 KB, patch)
2018-04-06 12:50 UTC, Olivier Crête
committed Details | Review

Description Olivier Crête 2018-03-14 23:33:37 UTC
iOS 10+ has the nasty idea to break sockets when it goes to sleep. So they need to be re-created when coming back. Attached patch does that.
Comment 1 Olivier Crête 2018-03-14 23:33:52 UTC
Created attachment 369696 [details] [review]
gssdp-client: Recreate socket on errors

iOS 10 and later close the UDP socket behind our backs when going
to sleep and we need to re-create them.
Comment 2 Olivier Crête 2018-03-14 23:36:05 UTC
The main visible effect of not having this fixed is that it spams the error log with "Failed to receive from socket: Error receiving message: Socket is not connected"
Comment 3 Jens Georg 2018-03-15 09:52:58 UTC
Wonder if linux does that as well in some circumstances. https://bugzilla.gnome.org/show_bug.cgi?id=728198
Comment 4 Olivier Crête 2018-03-15 13:32:56 UTC
I think bug #728198 is a completely different issue.. On iOS, the interface still exists, it's just that the application's sockets get destroyed.
Comment 5 Olivier Crête 2018-04-06 12:50:07 UTC
Created attachment 370577 [details] [review]
gssdp-client: Recreate socket on errors

Updated patch, I just realized there was a g_print() instead of g_warning() and I screwed up a sentinel.
Comment 6 Jens Georg 2018-10-30 19:18:22 UTC
Attachment 370577 [details] pushed as 1b0fa46 - gssdp-client: Recreate socket on errors