Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit b05c817

Browse files
committed
Don't forget to receive header frames
1 parent 2aad1bb commit b05c817

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_integration.py

+3
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def socket_handler(listener):
262262
# We're going to get the two messages for the connection open, then
263263
# a headers frame.
264264
receive_preamble(sock)
265+
sock.recv(65535)
265266

266267
# Now, send the headers for the response.
267268
f = build_headers_frame([(':status', '200')])
@@ -297,6 +298,7 @@ def socket_handler(listener):
297298
# We get two messages for the connection open and then a HEADERS
298299
# frame.
299300
receive_preamble(sock)
301+
sock.recv(65535)
300302

301303
# Now, send the headers for the response. This response has no body.
302304
f = build_headers_frame([(':status', '204'), ('content-length', '0')])
@@ -339,6 +341,7 @@ def socket_handler(listener):
339341
# We get two messages for the connection open and then a HEADERS
340342
# frame.
341343
receive_preamble(sock)
344+
sock.recv(65535)
342345

343346
# Now, send the headers for the response. This response has no body.
344347
f = build_headers_frame([(':status', '200'), ('content-length', '0')], e)

0 commit comments

Comments
 (0)