/*
- * $Id: client_side.cc,v 1.581 2002/06/24 06:07:38 hno Exp $
+ * $Id: client_side.cc,v 1.582 2002/07/20 12:30:04 hno Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
e = storeCreateEntry(h->uri, h->log_uri, flags, m);
h->sc = storeClientListAdd(e, h);
#if DELAY_POOLS
- delaySetStoreClient(h->sc, delayClient(h->request));
+ delaySetStoreClient(h->sc, delayClient(h));
#endif
h->reqofs = 0;
h->reqsize = 0;
http->sc = storeClientListAdd(entry, http);
#if DELAY_POOLS
/* delay_id is already set on original store client */
- delaySetStoreClient(http->sc, delayClient(http->request));
+ delaySetStoreClient(http->sc, delayClient(http));
#endif
http->request->lastmod = http->old_entry->lastmod;
debug(33, 5) ("clientProcessExpired: lastmod %ld\n", (long int) entry->lastmod);
{
char *url = http->uri;
request_t *r = http->request;
- int fd = http->conn->fd;
HttpReply *rep;
http_version_t version;
debug(33, 4) ("clientProcessRequest: %s '%s'\n",
url);
if (r->method == METHOD_CONNECT) {
http->log_type = LOG_TCP_MISS;
- sslStart(fd, url, r, &http->out.size, &http->al.http.code);
+ sslStart(http, &http->out.size, &http->al.http.code);
return;
} else if (r->method == METHOD_PURGE) {
clientPurgeRequest(http);
http->entry->mem_obj->method = r->method;
http->sc = storeClientListAdd(http->entry, http);
#if DELAY_POOLS
- delaySetStoreClient(http->sc, delayClient(r));
+ delaySetStoreClient(http->sc, delayClient(http));
#endif
assert(http->log_type == LOG_TCP_HIT);
http->reqofs = 0;
/*
- * $Id: delay_pools.cc,v 1.24 2002/04/21 21:54:40 hno Exp $
+ * $Id: delay_pools.cc,v 1.25 2002/07/20 12:30:04 hno Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: David Luyer <david@luyer.net>
}
delay_id
-delayClient(request_t * r)
+delayClient(clientHttpRequest * http)
{
+ request_t *r;
aclCheck_t ch;
int i;
int j;
unsigned int host;
unsigned short pool, position;
unsigned char class, net;
+ assert(http);
+ r = http->request;
memset(&ch, '\0', sizeof(ch));
ch.src_addr = r->client_addr;
ch.my_addr = r->my_addr;
ch.my_port = r->my_port;
+ ch.conn = http->conn;
ch.request = r;
if (r->client_addr.s_addr == INADDR_BROADCAST) {
debug(77, 2) ("delayClient: WARNING: Called with 'allones' address, ignoring\n");
/*
- * $Id: protos.h,v 1.441 2002/06/23 14:50:07 hno Exp $
+ * $Id: protos.h,v 1.442 2002/07/20 12:30:04 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
extern void start_announce(void *unused);
-extern void sslStart(int fd, const char *, request_t *, size_t *, int *);
+extern void sslStart(clientHttpRequest *, size_t *, int *);
extern void waisStart(FwdState *);
/* ident.c */
extern void delaySetNoDelay(int fd);
extern void delayClearNoDelay(int fd);
extern int delayIsNoDelay(int fd);
-extern delay_id delayClient(request_t *);
+extern delay_id delayClient(clientHttpRequest *);
extern EVH delayPoolsUpdate;
extern int delayBytesWanted(delay_id d, int min, int max);
extern void delayBytesIn(delay_id, int qty);
/*
- * $Id: ssl.cc,v 1.119 2002/04/13 23:07:51 hno Exp $
+ * $Id: ssl.cc,v 1.120 2002/07/20 12:30:04 hno Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
CBDATA_TYPE(SslStateData);
void
-sslStart(int fd, const char *url, request_t * request, size_t * size_ptr, int *status_ptr)
+sslStart(clientHttpRequest * http, size_t * size_ptr, int *status_ptr)
{
/* Create state structure. */
SslStateData *sslState = NULL;
ErrorState *err = NULL;
aclCheck_t ch;
int answer;
+ int fd = http->conn->fd;
+ request_t *request = http->request;
+ char *url = http->uri;
/*
* client_addr == no_addr indicates this is an "internal" request
* from peer_digest.c, asn.c, netdb.c, etc and should always
CBDATA_INIT_TYPE(SslStateData);
sslState = cbdataAlloc(SslStateData);
#if DELAY_POOLS
- sslState->delay_id = delayClient(request);
+ sslState->delay_id = delayClient(http);
delayRegisterDelayIdPtr(&sslState->delay_id);
#endif
sslState->url = xstrdup(url);
/*
- * $Id: tunnel.cc,v 1.119 2002/04/13 23:07:51 hno Exp $
+ * $Id: tunnel.cc,v 1.120 2002/07/20 12:30:04 hno Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
CBDATA_TYPE(SslStateData);
void
-sslStart(int fd, const char *url, request_t * request, size_t * size_ptr, int *status_ptr)
+sslStart(clientHttpRequest * http, size_t * size_ptr, int *status_ptr)
{
/* Create state structure. */
SslStateData *sslState = NULL;
ErrorState *err = NULL;
aclCheck_t ch;
int answer;
+ int fd = http->conn->fd;
+ request_t *request = http->request;
+ char *url = http->uri;
/*
* client_addr == no_addr indicates this is an "internal" request
* from peer_digest.c, asn.c, netdb.c, etc and should always
CBDATA_INIT_TYPE(SslStateData);
sslState = cbdataAlloc(SslStateData);
#if DELAY_POOLS
- sslState->delay_id = delayClient(request);
+ sslState->delay_id = delayClient(http);
delayRegisterDelayIdPtr(&sslState->delay_id);
#endif
sslState->url = xstrdup(url);