Changeset 9f030e7ca5bceb39f703bb24d6fe7546e5bc7824

Show
Ignore:
Timestamp:
05/24/10 15:32:43 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1274715163 +0000
git-parent:

[6cd90c1aee8624c59f25eab79180b581fdacf1be]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1274715163 +0000
Message:

_http_perform_write no longer closes the socket so we need to handle this more directly, refs #281

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    r4875b63 r9f030e7  
    10341034noit_http_response_flush(noit_http_session_ctx *ctx, noit_boolean final) { 
    10351035  struct bchain *o, *r; 
    1036   int mask
     1036  int mask, rv
    10371037 
    10381038  if(ctx->res.closed == noit_true) return noit_false; 
     
    10851085  } 
    10861086 
    1087   _http_perform_write(ctx, &mask); 
     1087  rv = _http_perform_write(ctx, &mask); 
    10881088  if(ctx->conn.e) { 
    10891089    eventer_update(ctx->conn.e, mask); 
    10901090  } 
    1091   /* If the write fails completely, the event will be closed, freed and NULL */ 
     1091  if(rv < 0) return noit_false; 
     1092  /* If the write fails completely, the event will not be closed, 
     1093   * the following should not trigger the false case. 
     1094   */ 
    10921095  return ctx->conn.e ? noit_true : noit_false; 
    10931096}