1 parent 82d65d1 commit 00b5f73Copy full SHA for 00b5f73
1 file changed
tests/agent/test_agent_loop.py
@@ -972,6 +972,12 @@ def test_abort_unblocks_stalled_http_stream(self):
972
class StallHandler(BaseHTTPRequestHandler):
973
protocol_version = "HTTP/1.1"
974
975
+ def handle(self):
976
+ with contextlib.suppress(
977
+ BrokenPipeError, ConnectionAbortedError, ConnectionResetError
978
+ ):
979
+ super().handle()
980
+
981
def do_POST(self):
982
length = int(self.headers.get("Content-Length", 0))
983
self.rfile.read(length or b"{}")
0 commit comments