moonbridge

changeset 97:0561abcc68ee

Bugfix regarding TCP PSH
author jbe
date Wed Apr 08 01:35:06 2015 +0200 (2015-04-08)
parents fdc1bb710544
children acaa85256c4b
files moonbridge_io.c
line diff
     1.1 --- a/moonbridge_io.c	Wed Apr 08 01:22:20 2015 +0200
     1.2 +++ b/moonbridge_io.c	Wed Apr 08 01:35:06 2015 +0200
     1.3 @@ -248,7 +248,7 @@
     1.4          handle->writebufcnt += strlen - handle->writeqoff;
     1.5          break;
     1.6        } else {
     1.7 -        moonbr_io_handle_set_nopush(L, handle, flush ? 0 : 1);
     1.8 +        moonbr_io_handle_set_nopush(L, handle, 1);
     1.9          written = 0;
    1.10          memcpy(handle->writebuf + handle->writebufcnt, str + handle->writeqoff, MOONBR_IO_WRITEBUFLEN - handle->writebufcnt);
    1.11          handle->writeqoff += MOONBR_IO_WRITEBUFLEN - handle->writebufcnt;
    1.12 @@ -283,6 +283,7 @@
    1.13      lua_rawseti(L, -2, handle->writeqout++);
    1.14    }
    1.15    if (flush) {
    1.16 +    moonbr_io_handle_set_nopush(L, handle, 0);
    1.17      written = 0;
    1.18      while (written < handle->writebufcnt) {
    1.19        result = write(handle->fd, handle->writebuf + written, handle->writebufcnt - written);

Impressum / About Us