Commit 57936127 authored by Jason Madden's avatar Jason Madden

Closing the client socket corrects all but 6 if the 22 failures in test__server for PyPy.

parent bf116779
......@@ -32,7 +32,9 @@ class SimpleStreamServer(StreamServer):
client_socket.sendall('HTTP/1.0 404 WTF?\r\n\r\n')
finally:
fd.close()
# The non-reference count behaviour of PyPy requires
# us to explicitly close this socket or the client never returns
client_socket.close()
class Settings:
ServerClass = StreamServer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment