connio: destroy buffers on broken connections to avoid SIGPIPEs when we close connections.

This commit is contained in:
alexhudson
2007-06-30 11:08:10 +00:00
parent d1e29f776c
commit c5c0ec06dc
+2
View File
@@ -1165,6 +1165,8 @@ ConnReadToAllocatedBuffer(Connection *c, char **buffer, unsigned long *bufferSiz
CONN_TCP_RECEIVE(c, c->receive.buffer, CONN_TCP_MTU, count);
if (count <= 0) {
c->send.remaining = 0;
c->send.read = c->send.write;
return(CONN_ERROR_NETWORK);
}