mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
End send optimization before resetting connection state
This commit is contained in:
parent
8d21970f46
commit
6d4c8e61d3
@ -608,9 +608,9 @@ class HTTPConnection(HTTPRequest):
|
|||||||
|
|
||||||
def reset_state(self):
|
def reset_state(self):
|
||||||
ready = not self.close_after_response
|
ready = not self.close_after_response
|
||||||
|
self.end_send_optimization()
|
||||||
self.connection_ready()
|
self.connection_ready()
|
||||||
self.ready = ready
|
self.ready = ready
|
||||||
self.end_send_optimization()
|
|
||||||
|
|
||||||
def report_unhandled_exception(self, e, formatted_traceback):
|
def report_unhandled_exception(self, e, formatted_traceback):
|
||||||
self.simple_response(httplib.INTERNAL_SERVER_ERROR)
|
self.simple_response(httplib.INTERNAL_SERVER_ERROR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user