# HG changeset patch # User Kim F. Storm # Date 1073432085 0 # Node ID 2a54a8df19739566debfe5244ab87bfcf70ac142 # Parent ad9b61a6077431894f954efb13ab41a61c1371b4 (read_process_output): Only activate adaptive buffering if we read less than 256 bytes at a time. diff -r ad9b61a60774 -r 2a54a8df1973 src/process.c --- a/src/process.c Tue Jan 06 23:21:00 2004 +0000 +++ b/src/process.c Tue Jan 06 23:34:45 2004 +0000 @@ -4771,7 +4771,7 @@ if (!NILP (p->adaptive_read_buffering)) { int delay = XINT (p->read_output_delay); - if (nbytes < readmax - carryover) + if (nbytes < 256) { if (delay < READ_OUTPUT_DELAY_MAX_MAX) { @@ -4780,7 +4780,7 @@ delay += READ_OUTPUT_DELAY_INCREMENT * 2; } } - else if (delay > 0) + else if (delay > 0 && (nbytes == readmax - carryover)) { delay -= READ_OUTPUT_DELAY_INCREMENT; if (delay == 0)