Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - FTP Client does not timeout after media is unplugged: Page 1 of 6 (6 Items)
   
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