2003-11-03
2003-11-03 13:41:58 by Martin Stjernholm <mast@lysator.liu.se>
-
d9b728db640d451fef31416063e47d651ac50830
(7 lines)
(+4/-3)
[
Show
| Annotate
]
Branch: 5.2
Fixed HTTP_BLOCKING_SIZE_THRESHOLD in forgotten places.
Rev: server/protocols/http.pike:1.409
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2001, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.408 2003/11/03 13:23:30 mast Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.409 2003/11/03 13:41:58 mast Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
1789:
}
else
{
- if( strlen( head_string ) < 4000)
+ if( strlen( head_string ) < (HTTP_BLOCKING_SIZE_THRESHOLD))
{
REQUEST_WERR (sprintf ("HTTP: Send %O", head_string));
do_log( my_fd->write( head_string ) );
2152: Inside #if defined(RAM_CACHE)
MY_TRACE_LEAVE ("Using entry from ram cache");
conf->hsent += strlen(file->hs);
cache_status["protcache"] = 1;
- if( strlen( d ) < 4000 )
+ if( strlen( d ) < (HTTP_BLOCKING_SIZE_THRESHOLD) )
{
TIMER_END(cache_lookup);
do_log( my_fd->write( fix_date(file->hs)+d ) );