apache httpclient 4.3 not timing out

前端 未结 1 905
有刺的猬
有刺的猬 2020-12-31 23:29

I am having trouble getting the Apache HttpClient (4.3) post request to timeout using the following code:

RequestConfig requestConfig = RequestConfig.custom(         


        
相关标签:
1条回答
  • 2020-12-31 23:51

    This is a bug with https connections in HttpClient 4.3. The socket timeout is not set on the socket before the SSL handshake is attempted. The thread may hang waiting on socket read during the handshake. HttpClient 4.2 does not have this bug.

    0 讨论(0)
提交回复
热议问题