[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14378223#comment-14378223
 ] 

Oleg Golovanov edited comment on HTTPCLIENT-1478 at 3/24/15 5:38 PM:
---------------------------------------------------------------------

httpclient 4.3.6 with httpcore 4.3.3 -> problem exists.

I am using a lot of threads that do https requests through proxy.
And some of them ( 5-20 from 300 ) hangs on:

http-outgoing-76778 >> "CONNECT host.ru:443 HTTP/1.1[\r][\n]"
http-outgoing-76778 >> "Host: host.ru[\r][\n]"
Http-outgoing-76778 >> "Proxy-Connection: Keep-Alive[\r][\n]"
http-outgoing-76778 >> "[\r][\n]"


was (Author: ogolovanov):
I am using httpclient 4.3.6 with httpcore 4.3.3.
Problem exists.

I am using a lot of threads that do https requests through proxy.
And some of them ( 5-20 from 300 ) hangs on:

http-outgoing-76778 >> "CONNECT host.ru:443 HTTP/1.1[\r][\n]"
http-outgoing-76778 >> "Host: host.ru[\r][\n]"
Http-outgoing-76778 >> "Proxy-Connection: Keep-Alive[\r][\n]"
http-outgoing-76778 >> "[\r][\n]"

> https calls ignore http.socket.timeout during SSL Handshake
> -----------------------------------------------------------
>
>                 Key: HTTPCLIENT-1478
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1478
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpConn
>    Affects Versions: 4.3 Final, 4.3.1, 4.3.2, 4.3.3
>         Environment: All
>            Reporter: Jonah Schwartz
>            Priority: Minor
>             Fix For: 4.3.4
>
>
> https calls ignore http.socket.timeout during SSL Handshake. This can result 
> in a https call hanging forever waiting for socket read. 
> In both SSLSocketFactory and SSLConnectionSocketFactory, 
> sslsock.startHandshake(); is called before socket timeout is set on the 
> socket. This means timeout is not respected during the SSL handshake, and the 
> thread can hang with a stacktrace that looks like this:
> org.apache.http.impl.client.AbstractHttpClient.doExecute
> org.apache.http.impl.client.DefaultRequestDirector.execute
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect
> org.apache.http.impl.conn.ManagedClientConnectionImpl.open
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket
> sun.security.ssl.SSLSocketImpl.startHandshake
> sun.security.ssl.SSLSocketImpl.startHandshake
> sun.security.ssl.SSLSocketImpl.performInitialHandshake
> sun.security.ssl.SSLSocketImpl.readRecord
> sun.security.ssl.InputRecord.read
> sun.security.ssl.InputRecord.readV3Record
> sun.security.ssl.InputRecord.readFully
> java.net.SocketInputStream.read
> java.net.SocketInputStream.socketRead0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to