Skip to content

Commit

Permalink
Here goes another run...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus committed Jul 19, 2019
1 parent 623203f commit f70b36f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/puma/minissl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ def read_nonblock(size, *_)

begin
data = @socket.read_nonblock(size)
rescue Errno::ECONNABORTED => e
raise "Connection aborted (#{e.inspect})"
rescue Errno::EAGAIN => e
raise "EAGAIN (#{e.inspect})"
raise Errno::EAGAIN.new("EAGAIN (#{e.backtrace})")
rescue Errno::EWOULDBLOCK => e
raise "EWOULDBLOCK (#{e.inspect})"
raise Errno::EWOULDBLOCK.new("EWOULDBLOCK (#{e.backtrace})")
rescue Exception => e
raise "Other exception (#{e.class.name}: #{e.inspect})"
raise "Other exception (#{e.class.name}: #{e.backtrace})"
end

return nil if data.nil?
Expand Down

0 comments on commit f70b36f

Please sign in to comment.