Skip to content

Commit

Permalink
Allow EPROTOTYPE error when writing junk to a socket
Browse files Browse the repository at this point in the history
MacOS seems to raise this error in some cases.
  • Loading branch information
jeremyevans committed Jul 26, 2020
1 parent 9676704 commit 0f0c9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/webrick/test_httpserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def test_gigantic_request_header
TCPSocket.open(addr, port) do |c|
c.write("GET / HTTP/1.0\r\n")
junk = -"X-Junk: #{' ' * 1024}\r\n"
assert_raise(Errno::ECONNRESET, Errno::EPIPE) do
assert_raise(Errno::ECONNRESET, Errno::EPIPE, Errno::EPROTOTYPE) do
loop { c.write(junk) }
end
end
Expand Down

0 comments on commit 0f0c9f1

Please sign in to comment.