You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Elliotte Rusty Harold <el...@ibiblio.org> on 2019/10/22 15:49:37 UTC

SO_SNDBUF/SO_RCVBUF

Where does HttpClient get its default values of SO_SNDBUF and
SO_RCVBUF from? Are these set i the code somewhere, and if so where?

Or are they inherited from the JDK or the host OS?

Thanks.

-- 
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: SO_SNDBUF/SO_RCVBUF

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2019-10-22 at 11:49 -0400, Elliotte Rusty Harold wrote:
> Where does HttpClient get its default values of SO_SNDBUF and
> SO_RCVBUF from? Are these set i the code somewhere, and if so where?
> 
> Or are they inherited from the JDK or the host OS?
> 
> Thanks.
> 

By default HttpCore and HttpClient do not modify the default JRE / OS
SO_SNDBUF and SO_RCVBUF settings.

---
socket.setSoTimeout(this.sconfig.getSoTimeout());
if
(this.sconfig.getSndBufSize() > 0) {
    socket.setSendBufferSize(this.s
config.getSndBufSize());
}
if (this.sconfig.getRcvBufSize() > 0) {
    soc
ket.setReceiveBufferSize(this.sconfig.getRcvBufSize());
}
---

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org