[squid-dev] [PATCH] squid-3.5: fix for errors when receiving a non-existent file via ftp
Vitaly Lavrov
vel21ripn at gmail.com
Wed Oct 7 18:16:25 UTC 2015
Bug 4279: No response from proxy for FTP-download of non-existing file
There is no code to handle errors ftp-protocol functions ftpFail().
The patch forms a response to the client an error similar to loginFailed().
To handle specific errors, you must add code in failedHttpStatus().
If you add to the template ERR_FTP_NOT_FOUND macro "%g", then the client
will be seen the original message server (550: Permission denied/File not found)
Patch tested on squid-3.5.9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squid-3.5-ftp_error_handle.diff
Type: text/x-diff
Size: 2174 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20151007/c011b79d/attachment.diff>
More information about the squid-dev
mailing list