[esb-issues] [JBoss JIRA] Created: (JBESB-1178) FTP Gateway Listener threads hang on Firewall reboot.

Philippe Ignace (JIRA) jira-events at lists.jboss.org
Mon Oct 15 09:09:03 EDT 2007


FTP Gateway Listener threads hang on Firewall reboot.
-----------------------------------------------------

                 Key: JBESB-1178
                 URL: http://jira.jboss.com/jira/browse/JBESB-1178
             Project: JBoss ESB
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Transports
    Affects Versions: 4.0
         Environment: JBOSS-AS 4.0.4,JBOSS- ESB 4.0, JVM Sun 1.5 RedHat linux.
            Reporter: Philippe Ignace
         Assigned To: Mark Little


There is a firewall between the FTP Gateway and the FTP server.
The firewall rebooted, cleans the FTP session tables.
The socket used used for FTP communication are set with a timeout of 0 (indefinite) the client theads does not get any communication exception, but it does not get any answer either => the thread get indefinitely stuck. The server must be rebooted.
There is to my knowledge no way to configure a timeout in the "org.jboss.internal.soa.util.EdtFtpImpl" class.

Suggested workaround/patch :
  Use a System property to set the value :
Add the following code :

                int timeOut = Integer.getInteger("jboss.esb.socket.timeout", -1);
		if (timeOut>=0) {
			try {
				m_oConn.setTimeout(timeOut);
			} catch (IOException e) {
				throw new RemoteFileSystemException("Failed while setting timeout=" + timeOut, e);
			}
			_logger.debug("TimeOut socket FTP=" + timeOut);
		}

After the checkParms() invocation  inside the private void initialize(boolean ...) method

Same issue with the SFTP client, I guess (I am not using it though).

Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the esb-issues mailing list