GNOME Bugzilla – Bug 794340
Need to recreate UDP sockets on errors on iOS 10+
Last modified: 2019-02-22 09:29:20 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.
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.
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"
Wonder if linux does that as well in some circumstances. https://bugzilla.gnome.org/show_bug.cgi?id=728198
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.
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.
Attachment 370577 [details] pushed as 1b0fa46 - gssdp-client: Recreate socket on errors