[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: about accpet system call



Try
a) man setsockopt
b) set (in the server) the value of SO_LINGER option
   in the setsockopt system call to an appropriate value.

	-Deepak Chandrashekar

On Fri, 28 Jul 2000, abhishek wrote:

> hi everybody
> 
>             i have made simple client/server application in  C. When my
> client disconnect from server i  get close state in "netstat -a" and it
> remains for hours. I have checked my code i have used "close(sockfd)" at
> proper places.
>             After running server for two to three days my client could
> not connect
> to server. at that time i am getting error "to many file open" on server
> side.
> 
> 
> Thanx in advance
> 
> 
> abhishek
> 
> 
> ----------------------------------------------------------------------
> An alpha version of a web based tool to manage your 
> subscriptions with this majordomo2 server is available
> at http://lists.linux-india.org/cgi-bin/mj_wwwusr
>