mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
server not being processed While introducing yet another test to catch frame processing errors, in this case with the SETTINGS_TIMEOUT error, another loop was found. It was caused by two reasons: * connection was signaling it was "closing" on such an error, which is not really true (server already closed the stream, so no need to close it again); it should be marked as closed instead. * write buffer was still full (with the handshake in this case), so the connection was still trying to write;
15 lines
305 B
Ruby
15 lines
305 B
Ruby
# frozen_string_literal: true
|
|
|
|
#
|
|
# This module is used only to test frame errors for HTTP/2. It targets the settings timeout of
|
|
# nghttp2.org, which is known as being 10 seconnds.
|
|
#
|
|
module SessionWithFrameDelay
|
|
module ConnectionMethods
|
|
def send_pending
|
|
sleep(11)
|
|
super
|
|
end
|
|
end
|
|
end
|