.TP
\fB+\fP[\fBno\fP]\fBtimeout\fP=\fIT\fP
Set the wait\-for\-reply interval in seconds (default is 5 seconds). This timeout
-applies to each query attempt. An attempt to set T to less than 1 will result
-in a query timeout of 1 second being applied.
+applies to each query attempt. Zero value or \fInotimeout\fP is intepreted as
+infinity.
.TP
\fB+\fP[\fBno\fP]\fBretry\fP=\fIN\fP
Set the number (>=0) of UDP retries (default is 2). This doesn\(aqt apply to
**+**\ [\ **no**\ ]\ **timeout**\ =\ *T*
Set the wait-for-reply interval in seconds (default is 5 seconds). This timeout
- applies to each query attempt. An attempt to set T to less than 1 will result
- in a query timeout of 1 second being applied.
+ applies to each query attempt. Zero value or *notimeout* is intepreted as
+ infinity.
**+**\ [\ **no**\ ]\ **retry**\ =\ *N*
Set the number (>=0) of UDP retries (default is 2). This doesn't apply to
return ret;
}
- // Check for minimal value.
- if (num < 1) {
- num = 1;
- // Reduce maximal value. Poll takes signed int in milliseconds.
- } else if (num > INT32_MAX / 1000) {
+ if (num < 1 || num > INT32_MAX / 1000) {
num = INT32_MAX / 1000;
}
{
query_t *q = query;
- q->wait = DEFAULT_TIMEOUT_DIG;
+ (void)params_parse_wait("0", &q->wait);
return KNOT_EOK;
}