Skip to content

Commit

Permalink
Log a warning if an HTTP Server doesn't respond.
Browse files Browse the repository at this point in the history
Change-Id: I937cd3a2490e38e950cf441a94ace7be5479b7f9
Reviewed-on: https://gerrit.dechocorp.com/16612
Reviewed-by: Jeremy Stanley <jeremy@mozy.com>
  • Loading branch information
ccutrer committed Feb 24, 2011
1 parent 3433fbd commit 702a01e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mordor/http/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ void
ServerRequest::finish()
{
if (m_responseState < COMPLETE) {
if (hasResponseBody())
MORDOR_LOG_WARNING(g_log) << m_conn << "-" << m_requestNumber
<< " incomplete response";
if (committed() && hasResponseBody()) {
cancel();
return;
Expand Down

0 comments on commit 702a01e

Please sign in to comment.