Changeset 003a683dd82a9ebcc4c43d5565e7e7c3d189384f
- Timestamp:
- 09/15/09 05:25:42
(4 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
| r0256945 |
r003a683 |
|
| 513 | 513 | while(in && bytes_read < len) { |
|---|
| 514 | 514 | int partial_len = MIN(in->size, len - bytes_read); |
|---|
| | 515 | if(buf) memcpy(buf+bytes_read, in->buff+in->start, partial_len); |
|---|
| 515 | 516 | bytes_read += partial_len; |
|---|
| 516 | | if(buf) memcpy(buf+bytes_read, in->buff+in->start, partial_len); |
|---|
| 517 | 517 | ctx->req.content_length_read += partial_len; |
|---|
| 518 | 518 | in->start += partial_len; |
|---|
| … | … | |
| 583 | 583 | mask = noit_http_complete_request(ctx, origmask); |
|---|
| 584 | 584 | _http_perform_write(ctx, &maybe_write_mask); |
|---|
| | 585 | if(ctx->conn.e == NULL) goto release; |
|---|
| 585 | 586 | if(ctx->req.complete != noit_true) return mask | maybe_write_mask; |
|---|
| 586 | 587 | } |
|---|