# Logging Connection termination reason

**URL:** <https://www.ruby-forum.com/t/logging-connection-termination-reason/195804>\
**Category:** NGINX\
**Created:** [September 30, 2010, 12:47pm UTC](https://www.ruby-forum.com/t/logging-connection-termination-reason/195804 "2010-09-30T12:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Georg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@Georg](https://www.ruby-forum.com/u/Georg)\
**Post date:** [September 30, 2010, 12:47pm UTC](https://www.ruby-forum.com/t/logging-connection-termination-reason/195804/1 "2010-09-30T12:47:48Z")

</div>

Hi,

i do have problems with some clients downloading a adobe flex rsl file  
(application/x-swz) - I see a lot of requests with different/invalid  
$body\_bytes\_sent values - however the file in the zone cache directory  
is expected to be always the same size.

To isolate the probelm i would need to debug the termination reason -  
this could be - a client aborted the download (timeout, connection reset  
by peer, whatever) or the connection was terminated regular (eof).

The only option i have found so far is running the error\_log in  
debug\_http mode - which causes the webserver to suffer due to the amount  
of diskio.

Is there a way to log which side has terminated the connection or the  
reason for terminating the connection ?  
Is there a way to have error\_log mode for a specific url ?

regards  
Georg
