* select(outfd) times out after send(outfd) returns ECONNRESET. bug?
@ 2006-02-01 9:17 Frank van Maarseveen
0 siblings, 0 replies; only message in thread
From: Frank van Maarseveen @ 2006-02-01 9:17 UTC (permalink / raw)
To: linux-kernel
Saw this (strace -tt -T) on 2.6.14.2 and 2.6.14.6:
12:04:14.180892 accept(3, {sa_family=AF_INET, sin_port=htons(3232), sin_addr=inet_addr("172.17.2.206")}, [16]) = 8 <0.000048>
...
12:04:14.233478 select(1024, NULL, [8], NULL, {5, 0}) = 1 (out [8], left {5, 0}) <0.000032>
12:04:14.233871 send(8, "\0\252#\307G\355#\307G\355#\307G\355#\307G\355#\307G\355"..., 147, 0) = -1 ECONNRESET (Connection reset by peer) <0.000028>
12:04:14.234109 select(1024, NULL, [8], NULL, {5, 0}) = 0 (Timeout) <4.999045>
12:04:19.233456 select(1024, NULL, [8], NULL, {0, 0}) = 0 (Timeout) <0.000029>
...
12:04:19.246691 recv(8, "", 147, 0) = 0 <0.000028>
12:04:19.246888 shutdown(8, 2 /* send and receive */) = -1 ENOTCONN (Transport endpoint is not connected) <0.000017>
12:04:19.247069 close(8) = 0 <0.000043>
I thought the second (and third) select() call should have returned
immediately, flagging the fd of the reset connection as writable.
--
Frank
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-01 9:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-01 9:17 select(outfd) times out after send(outfd) returns ECONNRESET. bug? Frank van Maarseveen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.