/*
- * $Id: ftp.cc,v 1.261 1999/01/11 20:28:02 wessels Exp $
+ * $Id: ftp.cc,v 1.262 1999/01/12 15:47:51 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
delay_id delay_id = delayMostBytesAllowed(mem);
#endif
assert(fd == ftpState->data.fd);
+ if (EBIT_TEST(entry->flags, ENTRY_ABORTED)) {
+ comm_close(fd);
+ return;
+ }
errno = 0;
read_sz = ftpState->data.size - ftpState->data.offset;
#if DELAY_POOLS
ftpPutStart(FtpStateData * ftpState)
{
debug(9, 3) ("ftpPutStart\n");
- pumpStart(ftpState->data.fd, ftpState->entry,
- ftpState->request, ftpPutTransferDone, ftpState);
+ pumpStart(ftpState->data.fd, ftpState->fwd, ftpPutTransferDone, ftpState);
}
static void
/*
- * $Id: gopher.cc,v 1.142 1999/01/08 21:12:13 wessels Exp $
+ * $Id: gopher.cc,v 1.143 1999/01/12 15:47:52 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
#if DELAY_POOLS
delay_id delay_id = delayMostBytesAllowed(entry->mem_obj);
#endif
+ if (EBIT_TEST(entry->flags, ENTRY_ABORTED)) {
+ comm_close(fd);
+ return;
+ }
errno = 0;
buf = memAllocate(MEM_4K_BUF);
read_sz = 4096 - 1; /* leave room for termination */
/*
- * $Id: http.cc,v 1.336 1999/01/11 16:50:32 wessels Exp $
+ * $Id: http.cc,v 1.337 1999/01/12 15:47:53 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
#if DELAY_POOLS
delay_id delay_id = delayMostBytesAllowed(entry->mem_obj);
#endif
+ if (EBIT_TEST(entry->flags, ENTRY_ABORTED)) {
+ comm_close(fd);
+ return;
+ }
/* check if we want to defer reading */
errno = 0;
read_sz = SQUID_TCP_SO_RCVBUF;
comm_close(fd);
return;
}
- pumpStart(fd, entry, httpState->orig_request, httpSendComplete, httpState);
+ pumpStart(fd, httpState->fwd, httpSendComplete, httpState);
}
/*
- * $Id: protos.h,v 1.300 1999/01/11 22:54:20 wessels Exp $
+ * $Id: protos.h,v 1.301 1999/01/12 15:47:54 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
extern void dumpMallocStats(void);
extern void pumpInit(int fd, request_t * r, char *uri);
-extern void pumpStart(int, StoreEntry *, request_t *, CWCB * callback, void *);
+extern void pumpStart(int, FwdState *, CWCB * callback, void *);
extern int pumpMethod(method_t method);
extern int pumpRestart(request_t *);
/*
- * $Id: store.cc,v 1.477 1999/01/11 21:55:43 wessels Exp $
+ * $Id: store.cc,v 1.478 1999/01/12 15:47:56 wessels Exp $
*
* DEBUG: section 20 Storage Manager
* AUTHOR: Harvest Derived
MemObject *mem = e->mem_obj;
assert(mem != NULL);
assert(len >= 0);
+ assert(e->store_status == STORE_PENDING);
if (len) {
debug(20, 5) ("storeAppend: appending %d bytes for '%s'\n",
len,
storeSetMemStatus(e, NOT_IN_MEMORY);
/* No DISK swap for negative cached object */
e->swap_status = SWAPOUT_NONE;
+ e->store_status = STORE_OK;
/*
* We assign an object length here. The only other place we assign
* the object length is in storeComplete()
/*
- * $Id: wais.cc,v 1.124 1998/12/05 00:54:48 wessels Exp $
+ * $Id: wais.cc,v 1.125 1999/01/12 15:47:57 wessels Exp $
*
* DEBUG: section 24 WAIS Relay
* AUTHOR: Harvest Derived
#if DELAY_POOLS
delay_id delay_id = delayMostBytesAllowed(entry->mem_obj);
#endif
+ if (EBIT_TEST(entry->flags, ENTRY_ABORTED)) {
+ comm_close(fd);
+ return;
+ }
errno = 0;
read_sz = 4096;
#if DELAY_POOLS