Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Quote:
HI everyone recently I am working with FTP server in qt, and then I connected to FTP but in 30 second if I do not do anything with FTP like download or upload, connection is becoming disconnection. who can help me what should I do to solve this problem
Posted
Comments
sreeyush sudhakaran 6-Aug-15 2:19am    
Better to use a separate thread which will monitor disconnection and re-connect it. QT FTP library have it's own FTP Re-Connect Mechanism which can be configured for a time interval???

1 solution

Most FTP servers have a time out value for closing the connection when no requests are received. FTP clients usually have a keep-alive option to send a FTP command in defined intervals (e.g. the NOOP command). So you should implement something similar in your client.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900