moonbridge

changeset 228:f4f6577742a1

Fixed bug in write buffer, which caused data to be lost when I/O is blocked
author jbe
date Sun Jul 12 20:28:41 2015 +0200 (2015-07-12)
parents 280bd7c84b38
children 829e748cf668
files moonbridge_io.c
line diff
     1.1 --- a/moonbridge_io.c	Sun Jul 12 19:00:05 2015 +0200
     1.2 +++ b/moonbridge_io.c	Sun Jul 12 20:28:41 2015 +0200
     1.3 @@ -476,6 +476,7 @@
     1.4            MOONBR_IO_WRITEBUFLEN - handle->writebufin
     1.5          );
     1.6          handle->writeqoff += MOONBR_IO_WRITEBUFLEN - handle->writebufin;
     1.7 +        handle->writebufin = MOONBR_IO_WRITEBUFLEN;
     1.8          while (handle->writebufout < MOONBR_IO_WRITEBUFLEN) {
     1.9            moonbr_io_handle_set_nopush(L, handle, 1);
    1.10            written = write(

Impressum / About Us