It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes Problem sending NOOP commands to keep FTP connection open Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Problem sending NOOP commands to keep FTP connection open" Watch "Problem sending NOOP commands to keep FTP connection open" New topic
Author

Problem sending NOOP commands to keep FTP connection open

PaulN Pearson
Greenhorn

Joined: May 23, 2008
Posts: 12
Hi,

I'm working on a project involving ftp transfers. Client-side we're using org.apache.commons.net.ftp.FTPClient, and server-side we're using org.apache.ftpserver.

We've found that transfers sometimes timeout on the control connection. I've been trying to prevent this by starting a thread which periodically calls FTPClient.sendNoOp(). However the new thread blocks on this call until the prior call to FTPClient.storeFile(String remote, InputStream stream) completes. I think it's blocking while waiting for a response from the server, which appears not to process the NOOP until completing the STOR command. What am I doing wrong here?

Any help appreciated.

Paul
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Problem sending NOOP commands to keep FTP connection open
 
Similar Threads
newbie Q on Thread Synchronization
ANT FTP task: Software caused connection abort: connect
Queries related to Minimizing FTP Connections
How can I use one ftp connection from 3 threads
Suggestion for SFTP from client side applet