Re: Is the linux networking code broken?

Alex Riesen (Alexander.Riesen@synopsys.com)
Fri, 31 May 2002 10:45:59 +0200


On Fri, May 31, 2002 at 02:47:21AM -0500, Ed Carp wrote:
> On Fri, 31 May 2002, Alex Riesen wrote:
>
> > Neither of them. How do you think the things are working here? 8-)
> > rsync, wget, apache, a whole lot other programs transfer megabytes.
>
> Most of them use short writes. Here's the source I'm using...

Most of them are the biggest possible writes.

~/compile/ercftp ./sender localhost ../nfs-kaboom.c
Using 2048 byte packets
Connecting to localhost
Resolved, opening TCP socket
Doing connect
Connected, waiting for OK...
Waiting for OK...
Sending ../nfs-kaboom.c
... a while
Waiting for ack...
caught signal 14!

~/compile/ercftp ./receiver
Getting TCP socket
Doing bind
Doing listen
Accepting connection
Writing 23987 to ../nfs-kaboom.c
... another while

caught signal 14! flen=23987, inlen=0, pos=0, packets=12, packet.seqno=0

Neither of the programs finished because of awful lot of bugs within,
but the output clearly shows the facts.
Surely, no problems with networking observed.

What kernel do you use? Also, you may want check your system libraries
(libc, libresolv*).

-alex
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/