-
Committer:
Alex Rousskov
-
Date:
2014-05-17 23:22:43 UTC
-
Revision ID:
rousskov@measurement-factory.com-20140517232243-75xpv3zd8jmqus98
Revised ftp-gw timeout handling to cope with very long data downloads/uploads
that triggered bogus ctrl connection timeouts due to ctrl channel inactivity.
Unset ctrl timeout when we are done waiting for the ctrl response
(ServerStateData::readControlReply).
Removed code setting data timeout from Ftp::ServerStateData::dataRead()
because the data timeout is set in ServerStateData::maybeReadVirginBody() that
dataRead calls to read data.
Removed switchTimeoutToDataChannel() from
Ftp::Gateway::ServerStateData::startDataDownload because
* ctrl timeout should be cleared when we are done waiting for the ctrl
response (ServerStateData::readControlReply) and
* data timeout should be set when we start waiting for the data
(ServerStateData::maybeReadVirginBody)
Unset channel timeout in FtpChannel::forget().