Make the kqueue socket read filter honor the SO_RCVLOWAT value.
Spotted by: "Steve M." <stevem@redlinenetworks.com>
This commit is contained in:
parent
0555ebf648
commit
e953756ee5
@ -1563,7 +1563,7 @@ filt_soread(struct knote *kn, long hint)
|
||||
kn->kn_flags |= EV_EOF;
|
||||
return (1);
|
||||
}
|
||||
return (kn->kn_data > 0);
|
||||
return (kn->kn_data >= so->so_rcv.sb_lowat);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user