mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
libsa: Partially revert r330023
The removal of tmo >= MAXTMO check should not have been done; this is specifically what handles timeout if MAXWAIT == 0. MFC after: 1 week
This commit is contained in:
parent
2b08b42bae
commit
ba37055c96
1 changed files with 4 additions and 0 deletions
|
|
@ -110,6 +110,10 @@ sendrecv(struct iodesc *d,
|
|||
return -1;
|
||||
}
|
||||
if (tleft <= 0) {
|
||||
if (tmo >= MAXTMO) {
|
||||
errno = ETIMEDOUT;
|
||||
return -1;
|
||||
}
|
||||
cc = (*sproc)(d, sbuf, ssize);
|
||||
if (cc != -1 && cc < ssize)
|
||||
panic("sendrecv: short write! (%zd < %zd)",
|
||||
|
|
|
|||
Loading…
Reference in a new issue