You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def connect_nonblock(sockaddr, exception: true)
fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK)
if sockaddr.is_a?(Addrinfo)
sockaddr = sockaddr.to_sockaddr
end
status = Truffle::Socket::Foreign.connect(descriptor, sockaddr)
if status < 0
if exception
Truffle::Socket::Error.write_nonblock('connect(2)')
else
:wait_writable
end
else
0
end
end
and it's always -1.
The exact same code works fine on MRI.
The text was updated successfully, but these errors were encountered:
I print out the status from
and it's always -1.
The exact same code works fine on MRI.
The text was updated successfully, but these errors were encountered: