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: ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en