Skip to content

Commit 435b722

Browse files
committed
try referencing constants via global Socket class for jruby
1 parent c0f85d0 commit 435b722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/socket/ssl.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def initialize(host, port, host_name, timeout, family, options = {})
105105
@host, @port, @host_name = host, port, host_name
106106
@context = create_context(options)
107107
@family = family
108-
@tcp_socket = ::Socket.new(family, SOCK_STREAM, 0)
108+
@tcp_socket = ::Socket.new(family, ::Socket::SOCK_STREAM, 0)
109109
begin
110-
@tcp_socket.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1)
110+
@tcp_socket.setsockopt(::Socket::IPPROTO_TCP, ::Socket::TCP_NODELAY, 1)
111111
set_socket_options(@tcp_socket)
112112
run_tls_context_hooks
113113

0 commit comments

Comments
 (0)