SICS-593: Return 0 from the AsconReading state to ensure that SICS
progresses through tasks.
This commit is contained in:
@@ -296,7 +296,7 @@ int OrdHVPSReading(Ascon *a) {
|
||||
if (DynStringConcatChar(a->rdBuffer, chr) == 0) {
|
||||
a->state = AsconReadDone;
|
||||
AsconError(a, "DynStringConcatChar failed:", ENOMEM);
|
||||
return 1;
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -307,20 +307,20 @@ int OrdHVPSReading(Ascon *a) {
|
||||
if (a->timeout > 0) {
|
||||
if (DoubleTime() - a->start > a->timeout) {
|
||||
AsconError(a, "read timeout", 0);
|
||||
a->state = AsconTimeout;
|
||||
return 1;
|
||||
/* a->state = AsconTimeout; */
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
rsp_len = GetDynStringLength(a->rdBuffer);
|
||||
if (OrdFmtReply(GetCharArray(a->rdBuffer), rsp_len, response, errmsg) >= 0) {
|
||||
DynStringReplace(a->rdBuffer,response,0);
|
||||
return 1;
|
||||
return 0;
|
||||
} else {
|
||||
AsconError(a, errmsg, 0);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user