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
are not doing what one would expect. As soon as response.respond_with_error is called, the connection is closed and the next lines are not executed (I'm not sure if another exception is raised or what). Then you never get to see the error in the output.
I also think we should probably use Log here too.
The text was updated successfully, but these errors were encountered:
This is probably happening when the client has closed the connection. Then the respond_with_status raise again.
I'll try to handle IO errors on HTTP::Server::Response directly so we differentiate issues when writing data to the client and just skip to close the connection.
These lines of code:
crystal/src/http/server/request_processor.cr
Lines 50 to 53 in 9f9b0a8
are not doing what one would expect. As soon as
response.respond_with_error
is called, the connection is closed and the next lines are not executed (I'm not sure if another exception is raised or what). Then you never get to see the error in the output.I also think we should probably use
Log
here too.The text was updated successfully, but these errors were encountered: