Attempt a reconnect for astvels protocol if a command times out.
This lets us re-use the astvel protovol to support SICS-601 so that HTTP connections will reconnect after the connection times out.
This commit is contained in:
@@ -12,7 +12,6 @@ int VelSelReading(Ascon *a)
|
|||||||
if (a->timeout > 0) {
|
if (a->timeout > 0) {
|
||||||
if (DoubleTime() - a->start > a->timeout) {
|
if (DoubleTime() - a->start > a->timeout) {
|
||||||
AsconError(a, "read timeout", 0);
|
AsconError(a, "read timeout", 0);
|
||||||
a->state = AsconTimeout;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user