Fixed a bug where sinqhttpopt would lock up on 0 length messages when in keep-alive
This commit is contained in:
@ -371,7 +371,11 @@ static int processHeader(Ascon *a)
|
||||
}
|
||||
DynStringCapacity(a->rdBuffer,pHttp->bytesExpected);
|
||||
|
||||
return 1;
|
||||
if(pHttp->bytesExpected < 0){
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------*/
|
||||
static int HttpHandler(Ascon * a)
|
||||
|
Reference in New Issue
Block a user