Changeset 003a683dd82a9ebcc4c43d5565e7e7c3d189384f

Show
Ignore:
Timestamp:
09/15/09 05:25:42 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1252992342 +0000
git-parent:

[ed7aabe19ded18908eae8deb7b3e532520b8a6b9]

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

fix consuming the post and handle an event shutdown in the noit_http_complete_request

Files:

Legend:

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

    r0256945 r003a683  
    513513    while(in && bytes_read < len) { 
    514514      int partial_len = MIN(in->size, len - bytes_read); 
     515      if(buf) memcpy(buf+bytes_read, in->buff+in->start, partial_len); 
    515516      bytes_read += partial_len; 
    516       if(buf) memcpy(buf+bytes_read, in->buff+in->start, partial_len); 
    517517      ctx->req.content_length_read += partial_len; 
    518518      in->start += partial_len; 
     
    583583    mask = noit_http_complete_request(ctx, origmask); 
    584584    _http_perform_write(ctx, &maybe_write_mask); 
     585    if(ctx->conn.e == NULL) goto release; 
    585586    if(ctx->req.complete != noit_true) return mask | maybe_write_mask; 
    586587  }