From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24443 invoked from network); 25 Jan 1999 03:51:47 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 Jan 1999 03:51:47 -0000 Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id WAA21627 for ; Sun, 24 Jan 1999 22:24:09 -0500 Received: (qmail 9325 invoked from network); 25 Jan 1999 03:24:07 -0000 Received: from rotary927-pri.voicenet.com (HELO voicenet.com) (209.71.52.27) by mail11.voicenet.com with SMTP; 25 Jan 1999 03:24:07 -0000 Message-ID: <36ABD213.FE56A39D@voicenet.com> Date: Sun, 24 Jan 1999 21:08:20 -0500 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Alan Cox CC: redhat-devel-list@redhat.com, "java-linux@java.blackdown.org" , "axp-list@redhat.com" Subject: TCP & SIGIO & SO_NOSPACE(sock_wmalloc() failure) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Are u folks aware that you wont get an EAGAIN/SIGIO sequence if there is no avail socket buffer space ? on an O_NONBLOCK socketed fd, if u writev too many characters ( approx 260k worth), u 1) get only a partial write ( ~~60k chars ) 2) Try to write the other chars on the next writev() gets you an EAGAIN error. Bec its NONBLOCKED, we sleep waiting for the SIGIO. ( or do other useless things till we get the SIGIO signal ) 3) We sleep forever waiting for a sigio that just aint comming. It appears that there is code int the linux/net to handle the SO_NOSPACE flag that get sets when the error occures, but apparently just doesn't work the same way when the tcp I/O transmission is complete where i get the expected SIGIO. Is this something simple to fix ( a missing reference to callback3() ), or is this a rewrite? gat This is linux 2.0.33 on alpha ( the last 2.0.xx kern that had an acceptable adaptec controller code! )