BUG? TCP connected to itself

Drago Goricanec (drago@king.otsd.ts.fujitsu.co.jp)
Tue, 22 Jun 1999 20:07:07 +0900

I have a strange situtation. My application tries to connect to port
1202 on the same host every 3.75 to 5.00 seconds. It uses a
non-blocking connect, and poll() to determine if the connection is
up. After the time interval has expired, it does a close() on the
socket, and another connect.

Every once in a while, the connect succeeds, but to itself! (There
should be no one listening at 1202!)

% netstat -a | grep 1202
tcp 0 0 raptor.otsd.ts.fuj:1202 raptor.otsd.ts.fuj:1202 ESTABLISHED
This is with kernel 2.2.9 UP with glibc (RedHat 5.1).

Is this normal!?


To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu