Re: persistent connections and tcp_outgoing_address

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 24 Feb 2007 22:25:16 +0100

lör 2007-02-24 klockan 17:14 +0100 skrev Francisco Gimeno:

> --- squid-2.6.STABLE9/src/forward.c 2007-01-19 01:21:01.000000000 +0100

> - fd = pconnPop(name, port, domain, NULL, 0);
> + fd = pconnPop(name, port, domain, &fwdState->request->client_addr, 0);

Ok.

> +++ squid-2.6.9/src/http.c 2007-02-24 15:49:04.000000000 +0100

> - pconnPush(fd, request->host, request->port, NULL, client_addr, client_port);
> + pconnPush(fd, request->host, request->port, request->host, client_addr, client_port);

Not ok... You changed the domain component of the key, not the client_addr.. Undo this..

If you look a few lines higher up you find the client_addr assignment.
It's there you need to make the change. Just removing the tproxy if
(both the preprocessor one, and the if statement, making it always
assigned should be fine I think.

                client_addr = &httpState->request->client_addr;

Regards
Henrik

Received on Sat Feb 24 2007 - 14:25:22 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:02 MST