Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: redhat-devel-list@redhat.com,
	"java-linux@java.blackdown.org" <java-linux@java.blackdown.org>,
	"axp-list@redhat.com" <axp-list@redhat.com>
Subject: TCP & SIGIO & SO_NOSPACE(sock_wmalloc() failure)
Date: Sun, 24 Jan 1999 21:08:20 -0500	[thread overview]
Message-ID: <36ABD213.FE56A39D@voicenet.com> (raw)
In-Reply-To: m0ztjol-0007U1C@the-village.bc.nu

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! )






       reply	other threads:[~1999-01-25  3:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m0ztjol-0007U1C@the-village.bc.nu>
1999-01-25  2:08 ` Uncle George [this message]
     [not found] <m104jX4-0007U1C@the-village.bc.nu>
1999-01-26  4:16 ` TCP & SIGIO & SO_NOSPACE(sock_wmalloc() failure) Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox