You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2022/02/14 11:05:00 UTC
[jira] [Commented] (SLING-11142) Connection Timeout agent is overidding a higher timeout from HttpClientBuilder
[ https://issues.apache.org/jira/browse/SLING-11142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17491939#comment-17491939 ]
Robert Munteanu commented on SLING-11142:
-----------------------------------------
Hi [~amalhotr] and thanks for the report. Can you please add a code sample that does not work as expected when instrumented by the connection timeout agent? Ideally this would be a new test case under https://github.com/apache/sling-org-apache-sling-connection-timeout-agent/tree/master/src/test/java/org/apache/sling/cta/impl , but if that proves problematic I'd be happy with a java snippet.
Thanks!
> Connection Timeout agent is overidding a higher timeout from HttpClientBuilder
> -------------------------------------------------------------------------------
>
> Key: SLING-11142
> URL: https://issues.apache.org/jira/browse/SLING-11142
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: Connection Timeout Agent 1.0.2
> Reporter: Ankush Malhotra
> Assignee: Robert Munteanu
> Priority: Major
>
> Other than using RequestConfig to set socket timeout, it may be set at default socket config of httpclient builder
> [https://github.com/zzphamvanthanhzz/httpclient-4.5.2-java/blob/master/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java#L353]
> the connection tiemout agent ignores the timeout from default socket config of httpclientbuilder, and this is a problem with default socket timeout in httpclientbuilder is higer, this override should atleast be documented, if not fixed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)