Skip to content

Commit

Permalink
tests: linkcheck: InfiniteRedirectOnHeadHandler: close server-side co…
Browse files Browse the repository at this point in the history
…nnection after response body is written, since we do not anticipate the client will read it

Ref: sphinx-doc#11340 (comment)
  • Loading branch information
jayaddison committed Apr 27, 2023
1 parent ba764a8 commit d6ee488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_build_linkcheck.py
Expand Up @@ -521,6 +521,7 @@ def do_GET(self):
self.send_header("Content-Length", str(len(content)))
self.end_headers()
self.wfile.write(content)
self.close_connection = True # we don't expect the client to read this response body


@pytest.mark.sphinx('linkcheck', testroot='linkcheck-localserver', freshenv=True)
Expand Down

0 comments on commit d6ee488

Please sign in to comment.