Branch: Tag:

2006-09-21

2006-09-21 14:44:42 by Marcus Wellhardh <wellhard@roxen.com>

Implemented better timing for requests using gethrtime(). The log variable $request-time is now pretty acurate.

Rev: server/base_server/prototypes.pike:1.183
Rev: server/base_server/roxen.pike:1.936
Rev: server/protocols/http.pike:1.506

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.505 2006/09/14 11:36:52 wellhard Exp $"; + constant cvs_version = "$Id: http.pike,v 1.506 2006/09/21 14:44:42 wellhard Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
2764:    if( c ) port_obj = c;    if( cc ) conf = cc;    time = predef::time(1); +  hrtime = gethrtime();    call_out(do_timeout, 90);    }    root_id = this_object();
2783:    port_obj = c;    MARK_FD("HTTP kept alive");    time = predef::time(); +  hrtime = gethrtime();       if ( le && strlen( le ) ) {   #ifdef CONNECTION_DEBUG