Skip to contentSkip to conversation

Is the linux networking code broken?

DISCUSSION Alex Riesen 1 participant 1 message May 31, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Ed Carp
Quoted 2 lines · Alex Riesen

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