Re: write() returning EAGAIN

Brian Gerst (bgerst@quark.vpplus.com)
Fri, 20 Nov 1998 00:15:38 -0500


Andi Kleen wrote:
>
> - Someone catching a strace log of it happening _including_ the last system
> calls before the endless loop.

Here you go... it's probably related to the ECONNRESET.

socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 28
ioctl(28, FIONBIO, [1]) = 0
connect(28, {sin_family=AF_INET, sin_port=htons(119),
sin_addr=inet_addr("207.126.101.101")}, 16) = -1 EINPROGRESS (Operation
now in progress)
connect(28, {sin_family=AF_INET, sin_port=htons(119),
sin_addr=inet_addr("207.126.101.101")}, 16) = -1 ECONNRESET (Connection
reset by peer)
write(28, "QUIT\r\n", 6) = -1 EAGAIN (Resource
temporarily unavailable)
write(28, "QUIT\r\n", 6) = -1 EAGAIN (Resource
temporarily unavailable)
...

BTW, that IP address is news.supernews.com, NNTP port. I have noticed
Netscape complaining about connection reset by peer messages alot
frequently. I am running kernel 2.1.128, RedHat 5.2.

-- 

Brian Gerst

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