/*
- * $Id: ftp.cc,v 1.142 1997/10/21 19:38:50 wessels Exp $
+ * $Id: ftp.cc,v 1.143 1997/10/22 05:50:28 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
StoreEntry *entry = ftpState->entry;
ErrorState *err;
debug(9, 4) ("ftpTimeout: FD %d: '%s'\n", fd, entry->url);
- if (entry->object_len == 0) {
+ if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_TIMEOUT;
err->http_status = HTTP_GATEWAY_TIMEOUT;
if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) {
commSetSelect(fd, COMM_SELECT_READ, ftpReadData, data, 0);
} else {
- if (entry->object_len == 0) {
+ if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
err->errno = errno;
debug(9, 7) ("ftpWriteCommandCallback: wrote %d bytes\n", size);
if (errflag) {
debug(50, 1) ("ftpWriteCommandCallback: FD %d: %s\n", fd, xstrerror());
- if (entry->object_len == 0) {
+ if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_WRITE_ERROR;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
ftpState,
0);
} else {
- if (entry->object_len == 0) {
+ if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
/*
- * $Id: gopher.cc,v 1.99 1997/10/21 19:38:51 wessels Exp $
+ * $Id: gopher.cc,v 1.100 1997/10/22 05:50:29 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
debug(10, 4) ("gopherTimeout: FD %d: '%s'\n", fd, entry->url);
/* was assert */
- if (entry->object_len == 0) {
+ if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_TIMEOUT;
err->http_status = HTTP_GATEWAY_TIMEOUT;
/*
- * $Id: http.cc,v 1.192 1997/10/21 19:38:52 wessels Exp $
+ * $Id: http.cc,v 1.193 1997/10/22 05:50:30 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
StoreEntry *entry = httpState->entry;
ErrorState *err;
debug(11, 4) ("httpTimeout: FD %d: '%s'\n", fd, entry->url);
- if (entry->object_len == 0) {
+ if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_TIMEOUT;
err->http_status = HTTP_GATEWAY_TIMEOUT;
if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) {
commSetSelect(fd, COMM_SELECT_READ, httpReadReply, httpState, 0);
} else {
- if (entry->object_len == 0) {
+ if (clen == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
err->errno = errno;