ok2c commented on code in PR #820:
URL:
https://github.com/apache/httpcomponents-client/pull/820#discussion_r3068463268
##########
httpclient5/src/main/java/org/apache/hc/client5/http/config/ConnectionConfig.java:
##########
@@ -74,34 +84,56 @@ protected ConnectionConfig() {
}
/**
+ * Gets the default socket timeout value for I/O operations on connections
created by this configuration.
+ * A timeout value of zero is interpreted as an infinite timeout.
+ *
+ * @return the default socket timeout value, defaults to null.
* @see Builder#setSocketTimeout(Timeout)
*/
public Timeout getSocketTimeout() {
return socketTimeout;
}
/**
+ * Gets the timeout until a new connection is fully established.
+ * <p>
+ * A timeout value of zero is interpreted as an infinite timeout.
+ * </p>
+ *
+ * @return the timeout until a new connection is fully established,
defaults to 3 minutes.
Review Comment:
@garydgregory Can we re-phrase this statement a little? Technically the
connection timeout is a timeout until the target endpoint acknowledgement it
accepts the connection request, not until the new connection is fully
established. For instance an HTTPS connection cannot be considered fully
established until the TLS handshake has been successfully completed.
Very nice otherwise.
--
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]