Skip to content

Commit

Permalink
Set SO_TIMEOUT and TCP_KEEPALIVE also for proxied SSL connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshi Nakamura committed Dec 9, 2016
1 parent 1ac3084 commit 382458e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/httpclient/jruby_ssl_socket.rb
Expand Up @@ -551,9 +551,9 @@ def create_ssl_socket(socket, dest, config, opts)
else
ssl_socket.connect(socket_addr)
end
ssl_socket.setSoTimeout(opts[:receive_timeout] * 1000) if opts[:receive_timeout]
ssl_socket.setKeepAlive(true) if opts[:tcp_keepalive]
end
ssl_socket.setSoTimeout(opts[:receive_timeout] * 1000) if opts[:receive_timeout]
ssl_socket.setKeepAlive(true) if opts[:tcp_keepalive]
ssl_socket
end

Expand Down

0 comments on commit 382458e

Please sign in to comment.