Show
Ignore:
Timestamp:
01/17/09 20:05:36 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1232222736 +0000
git-parent:

[2f419952f26b44b72a3e237c5aea5d3cf9af86c9]

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

first whack at feeding actual data. refs #71

Files:

Legend:

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

    r7940b59 r21b0c6c  
    390390  memset(&ctx->res, 0, sizeof(ctx->res)); 
    391391} 
     392void 
     393noit_http_ctx_session_release(noit_http_session_ctx *ctx) { 
     394  if(noit_atomic_dec32(&ctx->ref_cnt) == 0) { 
     395    noit_http_request_release(ctx); 
     396    noit_http_response_release(ctx); 
     397    free(ctx); 
     398  } 
     399} 
    392400int 
    393401noit_http_session_drive(eventer_t e, int origmask, void *closure, 
     
    424432  return 0; 
    425433 release: 
    426   noit_http_request_release(ctx); 
    427   noit_http_response_release(ctx); 
     434  noit_http_ctx_session_release(ctx); 
    428435  return 0; 
    429436} 
     
    433440  noit_http_session_ctx *ctx; 
    434441  ctx = calloc(1, sizeof(*ctx)); 
     442  ctx->ref_cnt = 1; 
    435443  ctx->req.complete = noit_false; 
    436444  ctx->conn.e = e;