Skip to content
  • Sebastian Dröge's avatar
    gioerror: Map WSAENETRESET on Windows to G_IO_ERROR_CONNECTION_CLOSED · a8acbba4
    Sebastian Dröge authored
    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.
    a8acbba4