Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2006-09-21
2006-09-21 15:03:40 by Marcus Wellhardh <wellhard@roxen.com>
8e5fa4d2c26f95035d7848be8721c5b2efa563a3 (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed hrtime for keep-alive requests.
Rev: server/protocols/http.pike:1.508
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2004, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
507
2006/09/21
14
:
56
:
04
grubba
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
508
2006/09/21
15
:
03
:
40
wellhard
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
642:
TIMER_START(parse_got); if( !method ) {
+
if (!hrtime)
+
hrtime = gethrtime();
array res; if( mixed err = catch( res = hpf( new_data ) ) ) { #ifdef DEBUG
2746:
port_obj = c; MARK_FD("HTTP kept alive"); time = predef::time();
-
hrtime =
gethrtime()
;
+
hrtime =
0
;
if ( le && strlen( le ) ) { #ifdef CONNECTION_DEBUG