cheald / manticore

Manticore is a JRuby HTTP client built on the Apache HttpClient 4.x components
https://gitlab.com/cheald/manticore
MIT License
54 stars 34 forks source link

Fix SSL handshake hang indefinitely #98

Closed kaisecheng closed 3 years ago

kaisecheng commented 3 years ago

There is an issue in apache HTTP client that cause SSL handshake hangs indefinitely. The issue happens only with proxy server. The socket timeout is unset in the handshake phase. This commit set the default socket config to PoolingHttpClientConnectionManager explicitly, so the timeout is non zero

Related issue: https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/1033

cheald commented 3 years ago

Looks good. Thank you!