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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user