Make the kqueue socket read filter honor the SO_RCVLOWAT value.

Spotted by:  "Steve M." <stevem@redlinenetworks.com>
This commit is contained in:
jlemon 2000-08-07 17:52:08 +00:00
parent 0555ebf648
commit e953756ee5

View File

@ -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