lib/puppeteer/web_socket.rb in puppeteer-ruby-0.30.0 vs lib/puppeteer/web_socket.rb in puppeteer-ruby-0.31.0
- old
+ new
@@ -16,9 +16,11 @@
def write(data)
@socket.write(data)
rescue Errno::EPIPE
raise EOFError.new('already closed')
+ rescue Errno::ECONNRESET
+ raise EOFError.new('closed by remote')
end
def readpartial(maxlen = 1024)
@socket.readpartial(maxlen)
rescue Errno::ECONNRESET