As I understand, abort_request() callback of upstream (ngx_http_upstream_s) is never called now. Please correct me, if I am wrong. The place to insert this function call is in ngx_http_upstream_check_broken_connection(), right? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,218412,218412#msg-218412