Skip to content

Commit b28f562

Browse files
jeremyevansioquatix
authored andcommitted
[ruby/webrick] Allow EPROTOTYPE error when writing junk to a socket
MacOS seems to raise this error in some cases. ruby/webrick@0f0c9f1e61
1 parent 42686e2 commit b28f562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/webrick/test_httpserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def test_gigantic_request_header
484484
TCPSocket.open(addr, port) do |c|
485485
c.write("GET / HTTP/1.0\r\n")
486486
junk = -"X-Junk: #{' ' * 1024}\r\n"
487-
assert_raise(Errno::ECONNRESET, Errno::EPIPE) do
487+
assert_raise(Errno::ECONNRESET, Errno::EPIPE, Errno::EPROTOTYPE) do
488488
loop { c.write(junk) }
489489
end
490490
end

0 commit comments

Comments
 (0)