File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ def connect_status(query):
350350 f"\r\n"
351351 ).encode() + body
352352 sock.sendall(request)
353+ sock.shutdown(socket.SHUT_WR)
353354 response = read_until(sock, b"\r\n\r\n")
354355 return int(response.split()[1])
355356
@@ -373,6 +374,7 @@ def connect_get_status(query):
373374 f"\r\n"
374375 ).encode()
375376 sock.sendall(request)
377+ sock.shutdown(socket.SHUT_WR)
376378 response = read_until(sock, b"\r\n\r\n")
377379 return int(response.split()[1])
378380
@@ -397,6 +399,7 @@ def connect_duplicate_get_status():
397399 f"\r\n"
398400 ).encode()
399401 sock.sendall(request)
402+ sock.shutdown(socket.SHUT_WR)
400403 response = read_until(sock, b"\r\n\r\n")
401404 return int(response.split()[1])
402405
@@ -421,6 +424,7 @@ def connect_persisted_get_status(hash_value):
421424 f"\r\n"
422425 ).encode()
423426 sock.sendall(request)
427+ sock.shutdown(socket.SHUT_WR)
424428 response = read_until(sock, b"\r\n\r\n")
425429 return int(response.split()[1])
426430
You can’t perform that action at this time.
0 commit comments