IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10624


Ignore:
Timestamp:
Dec 11, 2006, 12:13:42 PM (19 years ago)
Author:
eugene
Message:

extend IObuffer on successful read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/src/IOBufferOps.c

    r8385 r10624  
    4343  Nread = read (fd, &buffer[0].buffer[buffer[0].Nbuffer], buffer[0].Nblock);
    4444
     45  /* on success, increase the block size for the next read */
     46 
    4547  if (Nread >= 0) {
    4648    buffer[0].Nbuffer += Nread;
     49    buffer[0].Nblock *= 2;
     50    buffer[0].Nblock = MAX (buffer[0].Nblock, 0x10000);
    4751    return (Nread);
    4852  }
Note: See TracChangeset for help on using the changeset viewer.