Re: grizzly timeouts

  • From: Oleksiy Stashok <oleksiy.stashok@...>
  • To: users@...
  • Subject: Re: grizzly timeouts
  • Date: Thu, 19 Dec 2013 13:00:33 -0800

Hi Paul,

Okay so Transport.getReadTimeout() and Transport.getWriteTimeout() are only used if you set transport.configureBlocking(true) ?
Also when you call FilterChainContext.read() - it may go blocking as well.

Also the following additional fields are accepted by TCPNIOTransportBuilder do not appear to be set on TCPNIOTransport:
readBufferSize
writeBufferSize
can't reproduce, works for me (Grizzly 2.3.8)

connectionTimeout
fixed.

Thanks.

WBR,
Alexey.


Thanks,
Paul


From: Oleksiy Stashok <oleksiy.stashok@... <mailto:oleksiy.stashok@...>>
Reply-To: "users@... <mailto:users@...>" <users@... <mailto:users@...>>
Date: Thursday, December 19, 2013 3:19 PM
To: "users@... <mailto:users@...>" <users@... <mailto:users@...>>
Subject: Re: grizzly timeouts

Hi Paul,


On 19.12.13 11:31, Sprague, Paul wrote:
Hello grizzly users I have a few questions.

1)
TCPNIOTransport has readTimeout and writeTimeout fields, when (if ever) should these be used? I noticed they are not part of the TCPNIOTransportBuilder so I'm curious what they are for.
This is used when we read or write in blocking fashion. Fixing javadocs...


2)
Why does TCPNIOTransportBuilder have fields serverSocketSoTimeout and clientSocketSoTimeout but neither are set on the transport that gets built. Is this a bug?
bug.


3)
Also this is setter in TCPNIOTransportBuilder seems to be broken since it is setting the backlog instead of the timeout.

public TCPNIOTransportBuilder setServerSocketSoTimeout(int serverSocketSoTimeout) {
        this.serverConnectionBackLog = serverSocketSoTimeout;
        return getThis();
    }
bug.

I filed it here [1]. Will be fixed in the next release.

Please let us know if you find more :)

Thank you.

WBR,
Alexey.

[1] https://java.net/jira/browse/GRIZZLY-1623


Thanks,
Paul




grizzly timeouts

Sprague, Paul 12/19/2013

Re: grizzly timeouts

Oleksiy Stashok 12/19/2013

Re: grizzly timeouts

Sprague, Paul 12/19/2013

Re: grizzly timeouts

Oleksiy Stashok 12/19/2013
Terms of Use; Privacy Policy; Copyright ©2013-2017 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close