X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fplugin_transport_udp.c;h=c056bb79c55f163380012d7f2d65157599ca1c9d;hb=04b6df21cd281e8cd540139f8d9ae85defc1961c;hp=75580919432390d6a90a7310e4baffc8baecee35;hpb=483b0139a218a5f8a8311bda3eb23bcd88f57688;p=oweals%2Fgnunet.git diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 755809194..c056bb79c 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -2929,20 +2929,7 @@ udp_select_read(struct Plugin *plugin, struct GNUNET_NETWORK_Handle *rsock) (struct sockaddr *)&addr, &fromlen); sa = (const struct sockaddr *)&addr; -#if MINGW - /* On SOCK_DGRAM UDP sockets recvfrom might fail with a - * WSAECONNRESET error to indicate that previous sendto() (yes, sendto!) - * on this socket has failed. - * Quote from MSDN: - * WSAECONNRESET - The virtual circuit was reset by the remote side - * executing a hard or abortive close. The application should close - * the socket; it is no longer usable. On a UDP-datagram socket this - * error indicates a previous send operation resulted in an ICMP Port - * Unreachable message. - */ - if ((-1 == size) && (ECONNRESET == errno)) - return; -#endif + if (-1 == size) { LOG(GNUNET_ERROR_TYPE_DEBUG,