Skip to content

Commit 3cefb70

Browse files
committed
test(policy): finish chunked graphql requests
1 parent 0fb09f6 commit 3cefb70

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

e2e/rust/tests/forward_proxy_graphql_l7.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ def forward_chunked_status(query):
315315
f"\r\n"
316316
).encode() + chunk
317317
sock.sendall(request)
318+
sock.shutdown(socket.SHUT_WR)
318319
response = read_until(sock, b"\r\n\r\n")
319320
return int(response.split()[1])
320321
@@ -446,6 +447,7 @@ def connect_chunked_status(query):
446447
f"\r\n"
447448
).encode() + chunk
448449
sock.sendall(request)
450+
sock.shutdown(socket.SHUT_WR)
449451
response = read_until(sock, b"\r\n\r\n")
450452
return int(response.split()[1])
451453

0 commit comments

Comments
 (0)