joewitt commented on code in PR #9140:
URL: https://github.com/apache/nifi/pull/9140#discussion_r1701185136
##########
nifi-commons/nifi-web-client/src/main/java/org/apache/nifi/web/client/StandardWebClientService.java:
##########
@@ -87,17 +98,16 @@ public void setConnectTimeout(final Duration
connectTimeout) {
*/
public void setReadTimeout(final Duration readTimeout) {
Objects.requireNonNull(readTimeout, "Read Timeout required");
- okHttpClient =
okHttpClient.newBuilder().readTimeout(readTimeout).build();
+ this.readTimeout = readTimeout;
}
/**
- * Set timeout for writing requests to socket connection
+ * Set timeout for writing requests to socket connection is not supported
with current HTTP Client implementation
Review Comment:
It does seem possible to set a timeout on requests
https://www.baeldung.com/java-httpclient-timeout
I dont quite follow in the new api read/write timeout but it does seem like
you can set a timeout on the requests.
--
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]