Fix rare protocol parse error due to incorrect recv queue handling.
This commit is contained in:
parent
20a847e1b4
commit
61073bd304
|
@ -55,7 +55,7 @@ int handle_net_read(struct hub_user* user)
|
||||||
|
|
||||||
while ((pos = memchr(start, '\n', remaining)))
|
while ((pos = memchr(start, '\n', remaining)))
|
||||||
{
|
{
|
||||||
lastPos = pos;
|
lastPos = pos+1;
|
||||||
pos[0] = '\0';
|
pos[0] = '\0';
|
||||||
|
|
||||||
#ifdef DEBUG_SENDQ
|
#ifdef DEBUG_SENDQ
|
||||||
|
|
|
@ -403,7 +403,7 @@ static ssize_t ADC_client_recv(struct ADC_client* client)
|
||||||
|
|
||||||
while ((pos = memchr(start, '\n', remaining)))
|
while ((pos = memchr(start, '\n', remaining)))
|
||||||
{
|
{
|
||||||
lastPos = pos;
|
lastPos = pos+1;
|
||||||
pos[0] = '\0';
|
pos[0] = '\0';
|
||||||
|
|
||||||
#ifdef DEBUG_SENDQ
|
#ifdef DEBUG_SENDQ
|
||||||
|
|
Loading…
Reference in New Issue