[Q] Connection timeout

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Q] Connection timeout

CigarMan

This might sound basic but I haven’t found how :

 

When using connectorHandler.connect(…), how do we specify a timeout? It seems that the only way to set it is using the TCPSelectorHandler.setSocketTimeout() and TCPSeletorHandler.setServerTimeout()?

 

Thanks for the info.

 

Simon

 

Reply | Threaded
Open this post in threaded view
|

Re: [Q] Connection timeout

Jeanfrancois Arcand-2


Simon Trudeau wrote:
> This might sound basic but I haven’t found how :
>
>  
>
> When using connectorHandler.connect(…), how do we specify a timeout? It
> seems that the only way to set it is using the
> TCPSelectorHandler.setSocketTimeout() and
> TCPSeletorHandler.setServerTimeout()?
>

Looks like we have a bug right now as the value is hardcoded to 30
seconds (has been already reported, forgot to add an issue ->
forgot!):-( I've filled an issue here

https://grizzly.dev.java.net/issues/show_bug.cgi?id=83

Fix soon :-)

--Jeanfrancois


>  
>
> Thanks for the info.
>
>  
>
> Simon
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]