Fixed a bug where sinqhttpopt would lock up on 0 length messages when in keep-alive

This commit is contained in:
2014-11-07 14:00:12 +01:00
parent 4e148ffcaf
commit c24049766c

View File

@ -371,7 +371,11 @@ static int processHeader(Ascon *a)
} }
DynStringCapacity(a->rdBuffer,pHttp->bytesExpected); DynStringCapacity(a->rdBuffer,pHttp->bytesExpected);
return 1; if(pHttp->bytesExpected < 0){
return 0;
} else {
return 1;
}
} }
/*---------------------------------------------------------------------*/ /*---------------------------------------------------------------------*/
static int HttpHandler(Ascon * a) static int HttpHandler(Ascon * a)