On 2002-11-04 20:25, Kelly Yancey <[EMAIL PROTECTED]> wrote:
>   Let me know if this fixes things for you.  Thanks,

Yes, the patch fixed things for me.

Thanks :)))

%%%
Index: kern/uipc_socket.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v
retrieving revision 1.135
diff -u -p -r1.135 uipc_socket.c
--- kern/uipc_socket.c  2 Nov 2002 05:14:30 -0000       1.135
+++ kern/uipc_socket.c  5 Nov 2002 04:14:20 -0000
@@ -1794,7 +1794,7 @@ filt_soread(struct knote *kn, long hint)
                return (1);
        if (kn->kn_sfflags & NOTE_LOWAT)
                return (kn->kn_data >= kn->kn_sdata);
-       return (kn->kn_data >= so->so_rcv.sb_lowat);
+       return (so->so_rcv.sb_cc >= so->so_rcv.sb_lowat);
 }
 
 static void
Index: kern/uipc_socket2.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/uipc_socket2.c,v
retrieving revision 1.105
diff -u -p -r1.105 uipc_socket2.c
--- kern/uipc_socket2.c 2 Nov 2002 05:14:30 -0000       1.105
+++ kern/uipc_socket2.c 5 Nov 2002 04:19:05 -0000
@@ -705,6 +705,8 @@ sbcompress(sb, m, n)
                            (unsigned)m->m_len);
                        n->m_len += m->m_len;
                        sb->sb_cc += m->m_len;
+                       if (m->m_type != MT_DATA)
+                               sb->sb_ctl += m->m_len;
                        m = m_free(m);
                        continue;
                }
@@ -774,6 +776,8 @@ sbdrop(sb, len)
                        m->m_len -= len;
                        m->m_data += len;
                        sb->sb_cc -= len;
+                       if (m->m_type != MT_DATA)
+                               sb->sb_ctl -= len;
                        break;
                }
                len -= m->m_len;
%%%

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to