Branch: Tag:

2003-02-25

2003-02-25 16:11:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

-DTIMERS now works again.

Rev: server/protocols/http.pike:1.395

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.394 2003/02/18 10:34:16 wellhard Exp $"; + constant cvs_version = "$Id: http.pike,v 1.395 2003/02/25 16:11:24 grubba Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
575:    line = res[1];    request_headers = res[2];    } +  TIMER_END(parse_got);    return parse_got_2();   }      private final int parse_got_2( )   { -  +  TIMER_START(parse_got_2);    string trailer, trailer_trailer;    multiset (string) sup;    string a, b, s="", linename, contents;
649:    }    if(!remoteaddr) {    REQUEST_WERR("HTTP: No remote address."); -  TIMER_END(parse_got); +  TIMER_END(parse_got_2);    return 2;    }    }
722:    if(strlen(data) < l)    {    REQUEST_WERR(sprintf("HTTP: More data needed in %s.", method)); -  TIMER_END(parse_got); +  TIMER_END(parse_got_2);    return 0;    }    leftovers = data[l+2..];
796:    return 2;    }    } -  TIMER_END(parse_got); +  TIMER_END(parse_got_2);    return 3; // Done.   }