Skip to content

Commit 9f5c495

Browse files
authored
Improve TestKit backend performance (#1043)
1 parent 356c829 commit 9f5c495

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testkitbackend/server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class Server(TCPServer):
2323

2424
def __init__(self, address):
2525
class Handler(StreamRequestHandler):
26+
# undocumented config but unbearably slow without
27+
wbufsize = 2 ** 16 # 64 KiB
28+
2629
def handle(self):
2730
backend = Backend(self.rfile, self.wfile)
2831
try:

0 commit comments

Comments
 (0)