Changeset 66881597a764d99057ca0b381ab4d311d86dec79

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

[7e47bd8ddd24e8c8c76a3f1a7ae94710d5bc4664]

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

remove some debugging, register with the eventer for sane output in the capability set, refs #171

Files:

Legend:

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

    rea6ba41 r6688159  
    101101    /* Create an XML Document */ 
    102102    xmldoc = xmlNewDoc((xmlChar *)"1.0"); 
    103     root = xmlNewDocNode(xmldoc, NULL, (xmlChar *)"noitd_capabilities", NULL); 
     103    root = xmlNewDocNode(xmldoc, NULL, (xmlChar *)"noit_capabilities", NULL); 
    104104    xmlDocSetRootElement(xmldoc, root); 
    105105 
     
    112112    while(noit_hash_next(lc, &iter, &k, &klen, &data)) { 
    113113      xmlNodePtr cnode; 
    114       char hexcode[10]; 
     114      char hexcode[11]; 
    115115      const char *name; 
    116116      eventer_func_t *f = (eventer_func_t *)k; 
  • src/noit_capabilities_listener.h

    r88a7178 r6688159  
    3737#include "eventer/eventer.h" 
    3838 
    39 #define NOIT_CAPABILITIES_SERVICE 0xca4aca4a 
     39#define NOIT_CAPABILITIES_SERVICE 0x43415041 
    4040 
    4141API_EXPORT(void) 
  • src/noit_http.c

    r7e47bd8 r6688159  
    226226  struct bchain *b; 
    227227 
    228 if(req->first_input && req->first_input->size) { 
    229 noitL(noit_error, "HTTP REQ (headers): ===>%.*s<===\n", 
    230 req->first_input->size, req->first_input->buff + req->first_input->start); 
    231 } 
    232228  if(req->state != NOIT_HTTP_REQ_HEADERS) return noit_false; 
    233229  if(!req->current_input) req->current_input = req->first_input; 
     
    443439                                   in->allocd - in->size - in->start, 
    444440                                   &mask, ctx->conn.e); 
    445 noitL(noit_error, "HTTP REQ (drive read %d)\n", len); 
    446441    if(len == -1 && errno == EAGAIN) return mask; 
    447442    if(len <= 0) goto full_error; 
     
    519514      bytes_read += partial_len; 
    520515      if(buf) memcpy(buf+bytes_read, in->buff+in->start, partial_len); 
    521 noitL(noit_error, "HTTP REQ (consume) : ===>%.*s<===\n", 
    522 partial_len, in->buff+in->start); 
    523516      ctx->req.content_length_read += partial_len; 
    524517      in->start += partial_len; 
     
    550543                                      in->allocd - in->size - in->start, 
    551544                                      mask, ctx->conn.e); 
    552 noitL(noit_error, "HTTP REQ (consume read %d)\n", rlen); 
    553545      if(rlen == -1 && errno == EAGAIN) { 
    554546         /* We'd block to read more, but we have data, 
  • src/noit_rest.c

    r7e47bd8 r6688159  
    102102 
    103103void noit_http_rest_init() { 
     104  eventer_name_callback("http_rest_api/1.0", noit_http_rest_handler); 
    104105  noit_control_dispatch_delegate(noit_control_dispatch, 
    105106                                 NOIT_CONTROL_GET,