[PATCH] ftpfs socket timeout

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Sat Oct 26 09:18:01 UTC 2002


Hello,

the following patch imposes send and receive timeouts on the command and 
data socket. I also changed the vfs_s_select_on_two function so that it 
can wait for only one descriptor if the second parameter is < 0. 
Actually it's unclear to me why there was a select on both data socket 
and stdin performed in both ftpfs and FISH. When I changed it to wait 
only for the socket, it's now possible to abort the stalled downloads. 
Previously, mc tried to read from the socket even after pressing a key, 
which caused a lockup.

-- 
Jindrich Makovicka

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stall2.diff
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20021026/a17929e4/attachment.diff>


More information about the mc-devel mailing list