close() sends an RST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've following programmed: an tcp-server waits on select() for readable 
and writeable socket-handles. The client writes something to the server 
and reads its response and then calls close() for its connected socket. 
On the server site select() returns and indicates the socket as 
readable. The function read() returns with error ECONNRESET which 
indicates an RST send from the client. Because the client terminated as 
excpected (write()->read()->close()) I assume close() has send an RST 
instead of an FIN?! Is this correct or what happend? 
I'm using kernel 2.4.12.
with best regards,
Oliver
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux