Skip to content

Commit

Permalink
Add a compatibility fix for SSLSocket raising EBADF.
Browse files Browse the repository at this point in the history
See <ruby/openssl#798> for more details.
  • Loading branch information
ioquatix committed Sep 11, 2024
1 parent 7d1546f commit bc2ee67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/io/stream/buffered.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def sysread(size, buffer)
return result
end
end
rescue Errno::EBADF
raise ::IOError
end
end
end

0 comments on commit bc2ee67

Please sign in to comment.