jira-importer opened a new issue, #1275:
URL: https://github.com/apache/httpcomponents-core/issues/1275

   
**[kkewwei](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=kkewwei)**
 opened 
**[HTTPCORE-761](https://issues.apache.org/jira/browse/HTTPCORE-761?redirect=false)**
 and commented
   
   It's known that TCP Keep-Alive time  is 7200 seconds(default), default 
parameters do not meet all needs.
   
   If we could support setting TCP_KEEPIDLE, TCP_KEEPINTERVAL, TCP_KEEPCOUNT in 
Socket.
   
[SingleCoreIOReactor](https://github.com/apache/httpcomponents-core/blob/0d4aeb557737ac717e62c6375ca0d8a86f5f886b/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java#L268)
   
   ```java
   private void.prepareSocket(final Socket socket) throws IOException {
       socket.setTcpNoDelay(this.reactorConfig.isTcpNoDelay());
       socket.setKeepAlive(this.reactorConfig.isSoKeepAlive());
       if (this.reactorConfig.getSndBufSize() > 0) {
           socket.setSendBufferSize(this.reactorConfig.getSndBufSize());
       }
       if (this.reactorConfig.getRcvBufSize() > 0) {
           socket.setReceiveBufferSize(this.reactorConfig.getRcvBufSize());
       }
       if (this.reactorConfig.getTrafficClass() > 0) {
           socket.setTrafficClass(this.reactorConfig.getTrafficClass());
       }
       final int linger = this.reactorConfig.getSoLinger().toSecondsIntBound();
       if (linger >= 0) {
           socket.setSoLinger(true, linger);
       }
   }
   ```
   
   
   
   ---
   No further details from 
[HTTPCORE-761](https://issues.apache.org/jira/browse/HTTPCORE-761?redirect=false)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to