diff options
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 15 |
1 files changed, 1 insertions, 14 deletions
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) | |||
2929 | (struct sockaddr *)&addr, | 2929 | (struct sockaddr *)&addr, |
2930 | &fromlen); | 2930 | &fromlen); |
2931 | sa = (const struct sockaddr *)&addr; | 2931 | sa = (const struct sockaddr *)&addr; |
2932 | #if MINGW | 2932 | |
2933 | /* On SOCK_DGRAM UDP sockets recvfrom might fail with a | ||
2934 | * WSAECONNRESET error to indicate that previous sendto() (yes, sendto!) | ||
2935 | * on this socket has failed. | ||
2936 | * Quote from MSDN: | ||
2937 | * WSAECONNRESET - The virtual circuit was reset by the remote side | ||
2938 | * executing a hard or abortive close. The application should close | ||
2939 | * the socket; it is no longer usable. On a UDP-datagram socket this | ||
2940 | * error indicates a previous send operation resulted in an ICMP Port | ||
2941 | * Unreachable message. | ||
2942 | */ | ||
2943 | if ((-1 == size) && (ECONNRESET == errno)) | ||
2944 | return; | ||
2945 | #endif | ||
2946 | if (-1 == size) | 2933 | if (-1 == size) |
2947 | { | 2934 | { |
2948 | LOG(GNUNET_ERROR_TYPE_DEBUG, | 2935 | LOG(GNUNET_ERROR_TYPE_DEBUG, |