[jboss-jira] [JBoss JIRA] Commented: (JBAS-4254) Client read timeout setting wanted for HTTP Invoker
Galder Zamarreno (JIRA)
jira-events at lists.jboss.org
Tue Mar 27 12:33:04 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4254?page=comments#action_12357492 ]
Galder Zamarreno commented on JBAS-4254:
----------------------------------------
"setReadTimeout(xxx)" is a Java 5 API and any patches to
4.0.x must be runnable with Java 1.4.2.
It needs further study.
> 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