/*
- * $Id: client_side.cc,v 1.546 2001/09/23 22:17:51 hno Exp $
+ * $Id: client_side.cc,v 1.547 2001/10/12 23:33:01 hno Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
}
static int
-clientReplyBodyTooLarge(HttpReply *rep, int clen)
+clientReplyBodyTooLarge(HttpReply * rep, int clen)
{
if (0 == rep->maxBodySize)
return 0; /* disabled */
int rv;
httpReplyBodyBuildSize(http->request, rep, &Config.ReplyBodySize);
if (clientReplyBodyTooLarge(rep, rep->content_length)) {
- ErrorState *err = errorCon(ERR_TOO_BIG, HTTP_FORBIDDEN);
- err->request = requestLink(http->request);
- storeUnregister(http->sc, http->entry, http);
- http->sc = NULL;
- storeUnlockObject(http->entry);
- http->entry = clientCreateStoreEntry(http, http->request->method,
+ ErrorState *err = errorCon(ERR_TOO_BIG, HTTP_FORBIDDEN);
+ err->request = requestLink(http->request);
+ storeUnregister(http->sc, http->entry, http);
+ http->sc = NULL;
+ storeUnlockObject(http->entry);
+ http->entry = clientCreateStoreEntry(http, http->request->method,
null_request_flags);
- errorAppendEntry(http->entry, err);
- httpReplyDestroy(rep);
- return;
+ errorAppendEntry(http->entry, err);
+ httpReplyDestroy(rep);
+ return;
}
body_size = size - rep->hdr_sz;
assert(body_size >= 0);
conn->in.buf = xrealloc(conn->in.buf, conn->in.size);
/* XXX account conn->in.buf */
debug(33, 2) ("growing request buffer: offset=%ld size=%ld\n",
- (long) conn->in.offset, (long) conn->in.size);
+ (long) conn->in.offset, (long) conn->in.size);
len = conn->in.size - conn->in.offset - 1;
}
statCounter.syscalls.sock.reads++;
/*
- * $Id: dns_internal.cc,v 1.41 2001/10/01 14:20:02 hno Exp $
+ * $Id: dns_internal.cc,v 1.42 2001/10/12 23:33:00 hno Exp $
*
* DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c
* AUTHOR: Duane Wessels
* statement. Doing so messes up the internal _db_level
*/
port = comm_local_port(DnsSocket);
- debug(78, 1) ("DNS Socket created at %s, port %d, FD %d\n",
+ debug(78, 1) ("DNS Socket created at %s, port %d, FD %d\n",
inet_ntoa(addr),
port, DnsSocket);
}