Santosh Kumar
|
FTP Client does not timeout after media is unplugged
|
Santosh Kumar
07/26/2009 1:13 AM
post34587
|
FTP Client does not timeout after media is unplugged
Hi,
We have implemented an application that invokes the FTP client via system call. Once the an FTP transfer is completed or
failed we get a response back from the FTP client. However this fails for one scenario. During transfer of the file if
the transfer is interrupted by pulling out the ethernet cable, the FTP client is kind of "hung" and never returns. It
does not even recover after the ethernet cable is plugged back in.
We do not see a change in the "RUNNING" flags of the Ethernet interface if we plug in or plug out the ethernet cable. We
are using QNX 6.4.0 with the GA release of io-pkt that came along with it. The processor we use is MPC 8572. We run QNX
in SMP mode. We use the TSEC PHY which is controlled by the ethernet driver provided by QNX. We use the in-net version
of the driver with shim.
What we expect is some kind of an error response if the ethernet media is plugged out. How can we achieve this?
Thanks,
Santosh
|
|
|