.\" File automatically generated by doxy2man0.3 .\" Generation date: Sun Nov 15 2026 .TH radcli_request_set_timeout 3 2026-11-15 "radcli" "Radius client library" .SH "NAME" radcli_request_set_timeout \- Override the timeout and retry count of one request. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_request_set_timeout\fP( \fBradcli_request *\fP\fIr\fP, \fBint \fP\fItimeout_ms\fP, \fBint \fP\fIretries\fP ); .fi .SH DESCRIPTION .PP Replaces, for r only, the "radius_timeout" and "radius_retries" values radcli_request_new() read from the context; the context and its other requests are unaffected. They apply to every radcli_request_perform() mode as the configured values would, counted from that call. Establishing the context's shared TCP/TLS/DTLS connection still uses the configured "radius_timeout". .SH PARAMETERS .TP .B r a request from radcli_request_new(), not yet performed. .TP .B timeout_ms 0. .TP .B retries retransmissions after the first send; must be >= 0. .SH RETURN VALUE .PP 0 on success, -1 if r is NULL or already performed, or a value is out of range. .SH SEE ALSO .PP .nh .ad l \fIradcli_aaa\fP(3), \fIradcli_request_attrs\fP(3), \fIradcli_request_code\fP(3), \fIradcli_request_done\fP(3), \fIradcli_request_free\fP(3), \fIradcli_request_new\fP(3), \fIradcli_request_perform\fP(3), \fIradcli_request_server\fP(3) .ad .hy