forked from squid-cache/squid
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FtpGateway: Unexpected ABORTED suffixes in %Ss
While downloading/uploading files using HTTP GET/PUT requests with ftp URI scheme, Squid completes these transactions successfully but sometimes logs the ABORTED suffix, e.g., TCP_MISS_ABORTED. This happens because Squid postpones completing the corresponding StoreEntry until getting 221 reply from FTP server, even though the server has sent all response bytes already. So if the client closes the client-to-Squid connection before that, the cleanup code in ConnStateData::terminateAll() finishes the transaction which is logged as 'ABORTED' because the StoreEntry is still in the STORE_PENDING state. Now we complete the entry, calling Ftp::Gateway::completeForwarding() as soon as Squid got all FTP response bytes.
- Loading branch information
1 parent
620efbd
commit 2759372
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters