dont supress ENOBUFs message
This commit is contained in:
@@ -172,11 +172,7 @@ int lock_needed;
|
||||
pclient->disconnect = TRUE;
|
||||
}
|
||||
else if (pclient->proto == IPPROTO_UDP) {
|
||||
if (anerrno==ENOBUFS) {
|
||||
pclient->udpNoBuffCount++;
|
||||
}
|
||||
else {
|
||||
logMsg(
|
||||
logMsg(
|
||||
"CAS: UDP send to \"%s\" failed because \"%s\"\n",
|
||||
(int)buf,
|
||||
(int)strerror(anerrno),
|
||||
@@ -184,7 +180,6 @@ int lock_needed;
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
else {
|
||||
assert (0);
|
||||
|
||||
@@ -550,11 +550,6 @@ LOCAL void log_one_client(struct client *client, unsigned level)
|
||||
}
|
||||
|
||||
if (level>=2u) {
|
||||
if (client->udpNoBuffCount>0u) {
|
||||
printf ("\tNumber of UDP response messages dropped due to ENOBUFs = %u\n",
|
||||
client->udpNoBuffCount);
|
||||
}
|
||||
|
||||
bytes_reserved = 0;
|
||||
bytes_reserved += sizeof(struct client);
|
||||
|
||||
|
||||
@@ -438,7 +438,6 @@ struct client *create_udp_client(unsigned sock)
|
||||
FASTLOCKINIT(&client->eventqLock);
|
||||
|
||||
client->recv.maxstk = ETHERNET_MAX_UDP;
|
||||
client->udpNoBuffCount = 0u;
|
||||
return client;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,6 @@ struct client{
|
||||
int proto;
|
||||
int tid;
|
||||
unsigned minor_version_number;
|
||||
unsigned udpNoBuffCount;
|
||||
char disconnect; /* disconnect detected */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user