Re: close() sends an RST

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

 




oliver.kowalke@t-online.de wrote:

> 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 unable to reproduce the problem here (linux 2.4.12, glibc 2.1.3).

You will need to provide code which demonstrates the problem.

-- 
Glynn Clements <glynn.clements@virgin.net>
-
: 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