mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
explicitly close the connection
Co-authored-by: François Freitag <mail@franek.fr>
This commit is contained in:
parent
134a8d8f54
commit
9b2a1e20e2
@ -579,7 +579,7 @@ def test_limit_rate_bails_out_after_waiting_max_time(app):
|
||||
|
||||
class ConnectionResetHandler(http.server.BaseHTTPRequestHandler):
|
||||
def do_HEAD(self):
|
||||
raise requests.ConnectionError
|
||||
self.connection.close()
|
||||
|
||||
def do_GET(self):
|
||||
self.send_response(200, "OK")
|
||||
|
Loading…
Reference in New Issue
Block a user