/*
- * $Id: comm.cc,v 1.280 1998/07/25 00:18:08 wessels Exp $
+ * $Id: comm.cc,v 1.281 1998/07/29 02:57:35 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
CommWriteStateCallbackAndFree(fd, nleft ? COMM_ERROR : COMM_OK);
} else if (len < 0) {
/* An error */
- if (ignoreErrno(errno)) {
+ if (fd_table[fd].flags.socket_eof) {
+ debug(50, 2) ("commHandleWrite: FD %d: write failure: %s.\n",
+ fd, xstrerror());
+ CommWriteStateCallbackAndFree(fd, COMM_ERROR);
+ } else if (ignoreErrno(errno)) {
debug(50, 10) ("commHandleWrite: FD %d: write failure: %s.\n",
fd, xstrerror());
commSetSelect(fd,