[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

gurgstar do-not-reply at jboss.com
Tue Jun 26 19:26:15 EDT 2007


severSocketConstructor.newInstance() reads from the socket, then the socket.setTimeout() is called

Even if a socket timeout is set, if something just connects to the port and never writes anything, this code will hang indefinitely

ServerThread.java:183-191

      if(serverSocketConstructor.getParameterTypes().length == 3)
      {
         serverSocketWrapper = (SocketWrapper) serverSocketConstructor.newInstance(new Object[]{socket, metadata, new Integer(timeout)});
      }
      else
      {
         serverSocketWrapper = (SocketWrapper) serverSocketConstructor.newInstance(new Object[]{socket});
         serverSocketWrapper.setTimeout(timeout);
      }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057915#4057915

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057915



More information about the jboss-user mailing list