I am having trouble getting the Apache HttpClient (4.3) post request to timeout using the following code:
RequestConfig requestConfig = RequestConfig.custom(
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.