mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 08:38:13 -05:00
Remove the special treatment of non-blocking mode in
the "look ahead function" xdrrec_eof(). It currently
assumes that the last read() in a row of several reads
does not have zero lenght. If this is the case, svc_vc_stat()
does return XPRT_MOREREQS, and the RPC-request aborts because
there is no data to read anymore.
To fix this, go back to the original version of the code
for non-blocking mode until NetBSD comes up with another
possible fix like this one in xdrrec_eof()
if (rstrm->last_frag && rstrm->in_finger == rstrm->in_boundry) {
return TRUE;
}
Return always FALSE in set_input_fragment() for non-blocking
mode. Since this was not used in FreeBSD, I omitted it at the
first time. Now we use this function and we should always
return FALSE for it.
Reviewed by: rwatson
Approved by: re
|
||
|---|---|---|
| .. | ||
| Makefile.inc | ||
| xdr.3 | ||
| xdr.c | ||
| xdr_array.c | ||
| xdr_float.c | ||
| xdr_mem.c | ||
| xdr_rec.c | ||
| xdr_reference.c | ||
| xdr_sizeof.c | ||
| xdr_stdio.c | ||