ECONNRESET and segmentation fault with close()

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

 



Hello,

why does my tcp-server produce an ECONNRESET with an segmentation fault if
the client calls close() for the connected client socket and terminates?
If I call shutdown( handle, SHUT_RDWR) all works fine (no errors and
segmentation fault).
I test the return value from read() and write() like R.W. Stevens in 'UNIX
Network Programming, Vol.1'.
What is going wrong?
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