[
https://issues.apache.org/jira/browse/HTTPCLIENT-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137607#comment-14137607
]
Kurian Abraham commented on HTTPCLIENT-1555:
--------------------------------------------
I haven't tested it yet but according to the documentation, the socket timeout
is set back to 0 by SSLCertificateSocketFactory once the handshake is complete.
That implies you must set the socket timeout once again after the handshake.
Also, doesn't -1 mean it will use the system default value? Shouldn't it use
the value set in the request config? I can see how that could be difficult
since only one instance of the connection manager and socket factory is created
for the whole HttpClient.
> Socket timeout not applied to SSLSocketFactory & it waits indefinitely.
> -----------------------------------------------------------------------
>
> Key: HTTPCLIENT-1555
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1555
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Android Port
> Affects Versions: 4.3.5
> Reporter: Kurian Abraham
> Fix For: 4.3.5.1-android
>
>
> SSLCertificateSocketFactory is created with a socket timeout of 0. This
> causes requests to hang indefinitely. The socket timeout from the request
> config must be applied.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]