callback is called from comm_close().
/*
- * $Id: comm.cc,v 1.195 1997/10/26 01:46:08 wessels Exp $
+ * $Id: comm.cc,v 1.196 1997/10/26 02:33:17 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
assert(F->open);
assert(F->type != FD_FILE);
BIT_SET(F->flags, FD_CLOSING);
- CommWriteStateCallbackAndFree(fd, COMM_ERROR);
+ CommWriteStateCallbackAndFree(fd, COMM_ERR_CLOSING);
commCallCloseHandlers(fd);
if (F->uses) /* assume persistent connect count */
pconnHistCount(1, F->uses);
#define COMM_INPROGRESS (-6)
#define COMM_ERR_CONNECT (-7)
#define COMM_ERR_DNS (-8)
+#define COMM_ERR_CLOSING (-9)
#define COMM_NONBLOCKING (0x1)
#define COMM_NOCLOEXEC (0x8)
/*
- * $Id: ftp.cc,v 1.150 1997/10/25 17:22:42 wessels Exp $
+ * $Id: ftp.cc,v 1.151 1997/10/26 02:33:16 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
StoreEntry *entry = ftpState->entry;
ErrorState *err;
debug(9, 7) ("ftpWriteCommandCallback: wrote %d bytes\n", size);
+ if (errflag == COMM_ERR_CLOSING)
+ return;
if (errflag) {
debug(50, 1) ("ftpWriteCommandCallback: FD %d: %s\n", fd, xstrerror());
if (entry->mem_obj->inmem_hi == 0) {