From 1aa95d94a0084a5528b97807033b4833e8c201c4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 13 Mar 2015 11:55:35 +0100 Subject: [PATCH] Deal with excess bytes in HTTP response for keepalive YAZ-830 --- src/tcpip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tcpip.c b/src/tcpip.c index bea92df..b4fbd91 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -1289,6 +1289,7 @@ int tcpip_put(COMSTACK h, char *buf, int size) { state->towrite = size; state->written = 0; + state->altlen = 0; /* reset input buf in case of excess bytes YAZ-830 */ } else if (state->towrite != size) { -- 1.7.10.4