ok2c commented on code in PR #508:
URL: 
https://github.com/apache/httpcomponents-core/pull/508#discussion_r1860307248


##########
httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java:
##########
@@ -212,7 +213,11 @@ public ClassicHttpResponse execute(
             return response;
 
         } catch (final HttpException | IOException | RuntimeException ex) {
-            Closer.closeQuietly(conn);
+            if (http1Config.getUseRstOnTimeout()) {

Review Comment:
   @garydgregory Graceful shutdown of TLS connections would be one. One can 
drop a TLS connection without a `close-notify` handshake but it is generally 
considered rude.
   
   @ooeunz Why do not we always use `IMMEDIATE` close for plain (non TLS) 
conections by default? Would that make the new config flag redundant?



-- 
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: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to