Re: TCP connection

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

 



On Thu, Oct 06, 2005 at 10:05:26PM +1000, 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.

I think you need to post some strace output. What do you mean by
"crashed"? Do you close the socket and remove it from the fdset?

The W.R.Stevens book has complete examples for servers and clients, so
what are you doing differently?
-- 
Martijn van Oosterhout   <kleptog@xxxxxxxxx>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment: pgpPKl2m950Xy.pgp
Description: PGP signature


[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