Skip to content

gioerror: Map WSAENETRESET on Windows to G_IO_ERROR_CONNECTION_CLOSED

Sebastian Dröge requested to merge sdroege/glib:windows-netreset into master

This has almost the same semantics as WSAECONNRESET and for all practical purposes is handled the same. The main difference is about who reset the connection: the peer or something in the network.

For UDP sockets this happens when receiving packets and previously sent packets returned an ICMP "Time(-to-live) expired" message. This is similar to WSAECONNRESET, which on UDP sockets happens when receiving packets and previously sent packets returned an ICMP "Port Unreachable" message.

Merge request reports