-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
I'm seeing these types of errors. I believe they can be trapped so it does not bring down the server.
Looking at the source:
Lines 238 to 244 in 3ec3522
| case elli_tcp:send(Req#req.socket, Response) of | |
| ok -> ok; | |
| {error, Closed} when Closed =:= closed orelse Closed =:= enotconn -> | |
| #req{callback = {Mod, Args}} = Req, | |
| handle_event(Mod, client_closed, [before_response], Args), | |
| ok | |
| end. |
I suggest we add a catch-all for each of the case statements, this way we trap any unforeseen errors
Other Suggestions?
Metadata
Metadata
Assignees
Labels
No labels
