Closed binaryseed closed 4 years ago
When the client making a request hangs up (ex: client timeout), cowboy detects this and executes the terminate stream handler callback with
terminate
Reason = {socket_error, closed, 'The socket has been closed.'}
When the server reaches the idle_timeout, cowboy executes the terminate stream handler callback with
idle_timeout
Reason = {connection_error, timeout, 'Connection idle longer than configuration allows.'}
This PR emits a [cowboy, request, stop] event with an error instead of a response in that situation, since no response is ever sent to the client.
[cowboy, request, stop]
error
response
done
telemetry:exception
When the client making a request hangs up (ex: client timeout), cowboy detects this and executes the
terminate
stream handler callback withWhen the server reaches the
idle_timeout
, cowboy executes theterminate
stream handler callback withThis PR emits a
[cowboy, request, stop]
event with anerror
instead of aresponse
in that situation, since no response is ever sent to the client.