Re: TCP connection

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

 



On Thu, 6 Oct 2005, YH wrote:

Jeff is right, the read() returns 0, not -1. Anyway, the server program was crashed at select() as in my previous email. It is not the write() problem as there is no write() in my server program. As I said in my last email, I am really looking for a network system call to gracefully respond the client termination. The SIGPIPE with SIG_IGN did not work.

The graceful response to a client terminate is close() and then forget about the fd.

If your application is crashing in select() with a SIGBUS/SIGSEGV error then somehow gave bad fd_set pointers to select(). This is not related to clients closing/aborting their connections.

Regards
Henrik
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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