remove spam for UDP
This commit is contained in:
parent
40e9fb26d2
commit
be8a348998
1 changed files with 6 additions and 2 deletions
|
@ -2212,8 +2212,10 @@ void Socket::UDPConnection::SendNow(const char *sdata, size_t len, sockaddr * dA
|
||||||
if (r > 0){
|
if (r > 0){
|
||||||
up += r;
|
up += r;
|
||||||
}else{
|
}else{
|
||||||
|
if (errno != ENETUNREACH){
|
||||||
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
|
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}else{
|
}else{
|
||||||
#endif
|
#endif
|
||||||
|
@ -2221,8 +2223,10 @@ void Socket::UDPConnection::SendNow(const char *sdata, size_t len, sockaddr * dA
|
||||||
if (r > 0){
|
if (r > 0){
|
||||||
up += r;
|
up += r;
|
||||||
}else{
|
}else{
|
||||||
|
if (errno != ENETUNREACH){
|
||||||
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
|
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#if !defined(__CYGWIN__) && !defined(_WIN32)
|
#if !defined(__CYGWIN__) && !defined(_WIN32)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue