Menu

#20 cache hits failed with active client connection

open
nobody
None
5
2010-01-11
2010-01-11
Anonymous
No

description :
When a cache module serves a file in place of the server, it fails to connect to the client if it's in active mode.

diagnostic :
In cache_retr() (cache.c, line 390 in last version), the call to connect_to_socket takes config.tcpoutaddr as second argument, which is for destination server connection.

solution :
replace this argument with
config.listen.s_addr ? &config.listen : NULL
like in data.c for normal connexions.

Discussion


Log in to post a comment.