Observation using trn-test76 and INN 2.4.0
Jeremy Nixon
jeremy at exit109.com
Wed Nov 27 22:49:23 UTC 2002
On Wed, Nov 27, 2002 at 04:20:25PM +0100, Patrick Vervoorn wrote:
> While I'm not promoting the 'upping' of the default OV_CHUNK_SIZE in the
> trn source, it would maybe be a wise thing to make it an externally
> configurable setting, so that individual users can 'speed up' trn in the
> case when using servers that cater to the 'brute force' users...?
Quick and dirty hack, try this. With it you can set OV_CHUNK_SIZE in
your trnrc to override the default.
diff -c -r1.1 rt-ov.c
*** rt-ov.c 25 May 2000 05:11:42 -0000 1.1
--- rt-ov.c 27 Nov 2002 22:45:09 -0000
***************
*** 156,168 ****
MEM_SIZE last_buflen = LBUFLEN;
bool success = TRUE;
ART_NUM real_first = first;
#ifdef SUPPORT_NNTP
ART_NUM real_last = last;
int line_cnt;
! int ov_chunk_size = cheating? OV_CHUNK_SIZE : OV_CHUNK_SIZE * 8;
#endif
- time_t started_request;
- bool remote = !datasrc->over_dir;
#ifdef SUPPORT_NNTP
beginning:
--- 156,172 ----
MEM_SIZE last_buflen = LBUFLEN;
bool success = TRUE;
ART_NUM real_first = first;
+ time_t started_request;
+ bool remote = !datasrc->over_dir;
#ifdef SUPPORT_NNTP
ART_NUM real_last = last;
int line_cnt;
! int ov_chunk_size = OV_CHUNK_SIZE;
! char* ov_chunk;
! if ((ov_chunk = getenv("OV_CHUNK_SIZE")) != NULL)
! ov_chunk_size = (int)strtol(ov_chunk,(char **)NULL,10);
! ov_chunk_size = cheating? ov_chunk_size : ov_chunk_size * 8;
#endif
#ifdef SUPPORT_NNTP
beginning:
More information about the inn-workers
mailing list