This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients WildCard65, berker.peksag, martin.panter, paul.moore, steve.dower, terry.reedy, tim.golden, vstinner, zach.ware
Date 2018-01-05.20:49:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515185384.16.0.467229070634.issue25095@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry William, I forgot the client was waiting to read. But I don’t understand why your Connection field (which comes after the status line) allows the Python client to read the status line. Perhaps there is some malware scanner, firewall, or other proxy that intercepts the HTTP protocol? (I encountered something similar at work recently.)

You said “my suggestion will never work”, but did you try setting “close_connection” on its own:

def do_GET(self):
    self.send_response(HTTPStatus.OK)
    self.end_headers()
    self.close_connection = True  # Terminate response body to proxy

You tried adding Content-Length, but did you try “Content-Length: 0”:

def do_GET(self):
    self.send_response(HTTPStatus.OK)
    self.send_header("Content-Length", "0")  # Stop proxy reading body
    self.end_headers()
History
Date User Action Args
2018-01-05 20:49:44martin.pantersetrecipients: + martin.panter, terry.reedy, paul.moore, vstinner, tim.golden, berker.peksag, zach.ware, steve.dower, WildCard65
2018-01-05 20:49:44martin.pantersetmessageid: <1515185384.16.0.467229070634.issue25095@psf.upfronthosting.co.za>
2018-01-05 20:49:44martin.panterlinkissue25095 messages
2018-01-05 20:49:44martin.pantercreate