cache hits failed with active client connection
Status: Beta
Brought to you by:
hollo
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.