[jboss-jira] [JBoss JIRA] Created: (JBAS-4254) Client read timeout setting wanted for HTTP Invoker

Anders Welen (JIRA) jira-events at lists.jboss.org
Tue Mar 27 05:10:58 EDT 2007


Client read timeout setting  wanted for HTTP Invoker
----------------------------------------------------

                 Key: JBAS-4254
                 URL: http://jira.jboss.com/jira/browse/JBAS-4254
             Project: JBoss Application Server
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
    Affects Versions: JBossAS-4.0.3 SP1
            Reporter: Anders Welen
            Priority: Minor


There is no read timeout setting to prevent client threads from hanging while using the HTTP Invoker.

A quick fix (if you are using SUN JVM) is to use the parameter "-Dsun.net.client.defaultReadTimeout=60000". The problem with this solution is that it affects all connection, not just the HTTPInvoker.

A solution that works (if Java 5 is used) is to add a call to the method "setReadTimeout(xxx)" on the "conn" variable in the method "invoke()" in "org.jboss.invocation.http.interfaces.Util".

(The same problem exists with the standard JRMP Invoker aswell. It's just the Pooled Invoker that has a read timeout)

-- 
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 jboss-jira mailing list