CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=0, private, must-revalidate
content-type: text/html; charset=utf-8
etag: W/"3d3b12034a5e7c6b09314497a8cdd299"
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=ru3FzHrVdvNU29K4WfwPXUazxOCZf6IxGLEguY2v%2B3Q%3D\u0026sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d\u0026ts=1753944078"}],"max_age":3600}
reporting-endpoints: heroku-nel="https://nel.heroku.com/reports?s=ru3FzHrVdvNU29K4WfwPXUazxOCZf6IxGLEguY2v%2B3Q%3D&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&ts=1753944078"
server: Heroku
set-cookie: _redmine_session=Qy9CZTdvODNkOVlJbDg3UXRBNDY0TCszVkh6b3A5Ti9OOXFPUmhpYmdmbFQ3c3d5ZTVtdEZremQ0anRycHAwTDZVR2pQOFFwU2dCVmlWczNaaXNJd0FPOUhrRUpHWnlIVWx3ejBjYzhmYkp3NlhEZkhaTXU5dVJHR3BDMHNrenlLN2Y3SStnWnA2Y1FjcXI2c2Q5UVNSNXYxRWZMUStlUXQwRTFhQjkwbEl0aUEyZkRoaHpwaStvTFF2Slo0V0RyLS1ZSjNKdVZzOVFIbnYzWmxUN0Ftd1BBPT0%3D--1fbabbbe808ab060039408fa48f612290dd61b5e; 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: 1be02964-4345-f183-3d6c-d24d807cc74d
x-runtime: 0.159238
x-xss-protection: 1; mode=block
content-length: 29954
date: Thu, 31 Jul 2025 06:41:19 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) 30 days ago. Updated 30 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) 30 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) 30 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...