SICS-593 (in progress) Protocol handlers should return 0 from the
AsconReading state.
This commit is contained in:
@@ -15,7 +15,7 @@ int VelSelReading(Ascon *a)
|
|||||||
a->state = AsconTimeout;
|
a->state = AsconTimeout;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
DynStringConcatChar(a->rdBuffer, chr);
|
DynStringConcatChar(a->rdBuffer, chr);
|
||||||
while ((ret = AsconReadChar(a->fd, &chr)) > 0) {
|
while ((ret = AsconReadChar(a->fd, &chr)) > 0) {
|
||||||
@@ -23,6 +23,7 @@ int VelSelReading(Ascon *a)
|
|||||||
}
|
}
|
||||||
a->state = AsconReadDone;
|
a->state = AsconReadDone;
|
||||||
DynStringConcatChar(a->rdBuffer, '\0');
|
DynStringConcatChar(a->rdBuffer, '\0');
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int VelSelProtHandler(Ascon *a)
|
int VelSelProtHandler(Ascon *a)
|
||||||
|
|||||||
Reference in New Issue
Block a user