[ https://issues.apache.org/jira/browse/HTTPCLIENT-2384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011694#comment-18011694 ]
ASF subversion and git services commented on HTTPCLIENT-2384: ------------------------------------------------------------- Commit 32166ce4e33d4c3a8493ca9d58f05c4f36ea8d75 in httpcomponents-client's branch refs/heads/HTTPCLIENT-2384 from Oleg Kalnichevski [ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=32166ce4e ] HTTPCLIENT-2384: Socket options related to TcpKeepAlive are ignored > Socket options related to TcpKeepAlive are ignored > -------------------------------------------------- > > Key: HTTPCLIENT-2384 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2384 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (async), HttpClient (classic) > Affects Versions: 5.5 > Reporter: Igor Mukhin > Priority: Major > > SocketConfig has properties to set up TcpKeepAlive mechanism. Those are: > {code} > SocketConfig.tcpKeepIdle > SocketConfig.tcpKeepInterval > SocketConfig.tcpKeepCount > {code} > These properties are ignored while configuring a Socket in > DefaultHttpClientConnectionOperator.connect(...). Some standard options are > configured but not the tcpKeepAlive related stuff. > We bumped into the issue after migrating from 4.5.x. In 4.5 we were able to > configure a socket factory that done the socket configuration we needed. > After migration, we were glad to see that tcpKeepAlive could be configured in > SocketConfig. But it turned out the properties are ignored. > For now, we are using a workaround by creating > PoolingHttpClientConnectionManager which is supplied with the custom > configured DefaultHttpClientConnectionOperator which is configured with a > custom DetachedSocketFactory that configures tcpKeepAlive. Obviously this is > not the intended way of setting it up. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org