[#104169] [Ruby master Feature#17938] Keyword alternative for boolean positional arguments — matheusrichardt@...

Issue #17938 has been reported by matheusrich (Matheus Richard).

12 messages 2021/06/04

[#104213] [Ruby master Feature#17942] Add a `initialize(public @a, private @b)` shortcut syntax for defining public/private accessors for instance vars — tyler@...

SXNzdWUgIzE3OTQyIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IFR5bGVyUmljayAoVHlsZXIgUmljayku

6 messages 2021/06/09

[#104288] [Ruby master Bug#17992] Upstreaming the htmlentities gem into CGI#.(un)escape_html — alexandermomchilov@...

Issue #17992 has been reported by AMomchilov (Alexander Momchilov).

9 messages 2021/06/15

[#104338] [Ruby master Misc#17997] DevelopersMeeting20210715Japan — mame@...

Issue #17997 has been reported by mame (Yusuke Endoh).

10 messages 2021/06/17

[#104361] [Ruby master Bug#18000] have_library doesn't work when ruby is compiled with --disable-shared --disable-install-static-library — jean.boussier@...

Issue #18000 has been reported by byroot (Jean Boussier).

9 messages 2021/06/18

[#104381] [Ruby master Feature#18004] Add Async to the stdlib — shannonskipper@...

Issue #18004 has been reported by shan (Shannon Skipper).

9 messages 2021/06/22

[#104401] [Ruby master Feature#18007] Help developers of C extensions meet requirements in "doc/extension.rdoc" — mike.dalessio@...

Issue #18007 has been reported by mdalessio (Mike Dalessio).

16 messages 2021/06/25

[#104430] [Ruby master Bug#18011] `Method#parameters` is incorrect for forwarded arguments — josh.cheek@...

Issue #18011 has been reported by josh.cheek (Josh Cheek).

12 messages 2021/06/29

[ruby-core:104295] [Ruby master Bug#16186] Calling Net::HTTP from within an #inspect implementation hang when invoked from p

From: merch-redmine@...
Date: 2021-06-16 00:18:44 UTC
List: ruby-core #104295
Issue #16186 has been updated by jeremyevans0 (Jeremy Evans).

Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN to 2.7: REQUIRED, 3.0: DONTNEED
Status changed from Open to Closed

I tested this and it appears fixed by commit:63a5412db7138297a2e7513067ef80dad7a3b4b4.  It may be worthwhile to backport that commit to Ruby 2.7.

----------------------------------------
Bug #16186: Calling Net::HTTP from within an #inspect implementation hang when invoked from p
https://bugs.ruby-lang.org/issues/16186#change-92516

* Author: byteit101 (Patrick Plenefisch)
* Status: Closed
* Priority: Normal
* Assignee: kosaki (Motohiro KOSAKI)
* ruby -v: ruby 2.7.0dev (2019-09-27T18:22:21Z trunk d53cf85474) [x86_64-linux]
* Backport: 2.7: REQUIRED, 3.0: DONTNEED
----------------------------------------
Using this script:
``` ruby
require 'net/http'
class Victim
	def inspect
		puts "before"
		Net::HTTP.get('example.com', '/index.html') # this hangs. I haven't tried other network libraries
		puts "After"
		return "success"
	end
end
puts Victim.new.inspect # for some reason this doesn't hang
puts "now we hang"
p Victim.new  # but this implicit invocation of inspect does hang. Independent of ordering, and works on JRuby
puts "It worked!"
```

Expected:
```
$ rvm use jruby
$ ruby bug.rb
before
After
success
now we hang
before
After
success
It worked!
$
```

Actual:
```
$ rvm use ruby-head 
$ ruby bug.rb
before
After
success
now we hang
before
^C^C^Z
[1]  + 13423 suspended  ruby bug.rb
$ kill %1
$ (time passes)
Traceback (most recent call last):
	11: from bug.rb:12:in `<main>'
	10: from bug.rb:12:in `p'
	 9: from bug.rb:5:in `inspect'
	 8: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/net/http.rb:458:in `get'
	 7: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/net/http.rb:476:in `get_response'
	 6: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/net/http.rb:919:in `start'
	 5: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/net/http.rb:930:in `do_start'
	 4: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/net/http.rb:945:in `connect'
	 3: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
	 2: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/timeout.rb:99:in `block in timeout'
	 1: from /home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/timeout.rb:99:in `ensure in block in timeout'
/home/byteit101/.rvm/rubies/ruby-head/lib/ruby/2.7.0/timeout.rb:99:in `join': Interrupt

[1]  + 13423 interrupt  ruby bug.rb
$
```
The thing that is surprising to me is the explicit `print` + `inspect` works, whereas a straight `p` hangs.





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next