CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=0, private, must-revalidate
content-type: text/html; charset=utf-8
etag: W/"2d8526e068cff3388f84bb26fecec380"
nel: {"report_to":"heroku-nel","response_headers":["Via"],"max_age":3600,"success_fraction":0.01,"failure_fraction":0.1}
referrer-policy: strict-origin-when-cross-origin
report-to: {"group":"heroku-nel","endpoints":[{"url":"https://nel.heroku.com/reports?s=ltE6RX7X%2Fpcrzcw2uLuNVhESuPHYlVSesq70ThyiPzA%3D\u0026sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d\u0026ts=1753251341"}],"max_age":3600}
reporting-endpoints: heroku-nel="https://nel.heroku.com/reports?s=ltE6RX7X%2Fpcrzcw2uLuNVhESuPHYlVSesq70ThyiPzA%3D&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&ts=1753251341"
server: Heroku
set-cookie: _redmine_session=U2hwV3JkOUp4eTY2S0g3eVFIakFvYWdPeHVHRVI5b0lZbzlxM3FOOVdmNnA1WndRWWxDRmpZazdBOXUzYm5ZUHd6OElic2xCOCsxQzdOQzVCQjNqSkR2MWZuVXVCNnNGbTBYWWJSdFkvOTdZTUR1TXoxMExxOGxzbUlkeDlTNlVLSXlxdnljbTZkQ2JiTFV1MDJ5bmFQekY3Z2hpTDd3VGsxclVPaWZKL1BCaFhIRmozRks4M0lBaG9iZ1k5N3N4LS03S0NpWVl5aWI2c2JaV2xnNjNSUHJ3PT0%3D--b8fff0a416ac3be79158a108ecfe1a707fa25efd; path=/; secure; httponly; samesite=lax
strict-transport-security: max-age=63072000; includeSubDomains
vary: Accept
via: 2.0 heroku-router
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: 8e52824e-e798-56ed-d0c1-4ceadb2e8c31
x-runtime: 0.108891
x-xss-protection: 1; mode=block
content-length: 29938
date: Wed, 23 Jul 2025 06:15:41 GMT
Bug #21495: IO.read_nonblock does not work under a rescue IO::TimeoutError - Ruby - Ruby Issue Tracking System
[ruby-core:122636]
Project
General
Profile
Tags
Custom queries
Actions
Bug #21495
openIO.read_nonblock does not work under a rescue IO::TimeoutError
Added by dE (dE Techno) 22 days ago. Updated 22 days ago.
Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux]
Description
In this particular code --
execArg = 'echo testwrite; sleep 5'
tofuProcess = IO.popen(execArg, 'r')
puts 'executed tofu process.'
tofuProcess.timeout=2
begin
tofuOut = tofuProcess.read
rescue IO::TimeoutError
puts 'rescue occured'
begin
tofuOut = tofuProcess.read_nonblock(1)
rescue IO::EAGAINWaitReadable
puts 'no data in read buffer!'
end
tofuProcess.close
puts 'process closed'
end
tofuProcess.read_nonblock(1) must return a character because the underlying process has produced an output. But it raises a IO::EAGAINWaitReadable exception instead which does not happen outside a rescue IO::TimeoutError block
Updated by dE (dE Techno) 22 days ago
- ruby -v changed from de@myworkstation ~/docs/Practice/Software/ruby $ ruby -v ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux] to ruby -v ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux]
Updated by dE (dE Techno) 22 days ago
- ruby -v changed from ruby -v ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux] to ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux]
Actions
Like0
Like0Like0
Powered by Redmine © 2006-2025 Jean-Philippe Lang
Loading...