diff options
-rw-r--r-- | sys/kern/uipc_socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 5d84d7e..210dce4 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1563,6 +1563,8 @@ filt_soread(struct knote *kn, long hint) kn->kn_flags |= EV_EOF; return (1); } + if (so->so_error) /* temporary udp error */ + return (1); return (kn->kn_data >= so->so_rcv.sb_lowat); } @@ -1601,6 +1603,8 @@ filt_sowrite(struct knote *kn, long hint) kn->kn_flags |= EV_EOF; return (1); } + if (so->so_error) /* temporary udp error */ + return (1); if (((so->so_state & SS_ISCONNECTED) == 0) && (so->so_proto->pr_flags & PR_CONNREQUIRED)) return (0); |