[#108552] [Ruby master Bug#18782] Race conditions in autoload when loading the same feature with multiple threads. — "ioquatix (Samuel Williams)" <noreply@...>
Issue #18782 has been reported by ioquatix (Samuel Williams).
11 messages
2022/05/14
[ruby-core:108635] [Ruby master Bug#18792] Socket.tcp throws `getaddrinfo': no implicit conversion of Hash into String
From:
"rahulroot (Rahul Gupta)" <noreply@...>
Date:
2022-05-20 11:30:01 UTC
List:
ruby-core #108635
Issue #18792 has been reported by rahulroot (Rahul Gupta).
----------------------------------------
Bug #18792: Socket.tcp throws `getaddrinfo': no implicit conversion of Hash into String
https://bugs.ruby-lang.org/issues/18792
* Author: rahulroot (Rahul Gupta)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Hello,
I was using ruby 2.5.3 for a while, but now it's EOL, trying to port my code to ruby 3.0.4.
Same piece of code is throwing error on below code snippet.
Below piece of code works fine on ruby 2.5.3, but throws error on ruby 3.0.4.
I investigated socket.rb, it turns out that local_host is Hash in latest ruby, in older version it was NilClass.
I have a sample running application on local VM.
``` ruby
require 'socket'
host = "192.168.56.100"
port = 8081
socket_opts = {
connect_timeout: 10,
}
Socket.tcp(host, port, socket_opts)
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>