You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I override self.request.connection.set_max_body_size(XXXXXX) and set it to some value, say 5MB. I also depend on on_finish() to do some cleanup once the request finishes. If the connection is closed with the client because the body size limit is hit, on_finish does not get called.
The text was updated successfully, but these errors were encountered:
I think you could check for missed cleanup in on_connection_close()
I'm not completely sure if the fact that on_finish() may not be called after prepare() is called is a bug ... might this only be possible for @stream_request_body?
Is the expected behavior that on_finish() is also not called if the client abruptly closes the connection? I think I'm seeing that as well (also with @stream_request_body)
Update:
Just tested this and on_connection_close() is called if either the server or client close the connection. Thanks for the help!
Is it safe to assume that on_connection_close() and on_finish() won't ever both be called for the same request?
I override
self.request.connection.set_max_body_size(XXXXXX)
and set it to some value, say 5MB. I also depend onon_finish()
to do some cleanup once the request finishes. If the connection is closed with the client because the body size limit is hit,on_finish
does not get called.The text was updated successfully, but these errors were encountered: