Re: help on socket connexion

2005-09-15 Thread Brian Dessent
znort wrote: > Ok, part of code... > > If I run a client test (loop of 60 connection) to connect to the > server, all the fork/connection are ok... > but sometimes all the fork still "hang" in the process list even if I > stop the client > > (sorry but the code is "as is") How can this code pos

Re: help on socket connexion

2005-09-15 Thread znort
Hello again; In fact it seems the server "store" the number of descriptor from select() even if the client disconnect... and after the limit of 64 it fails (normal as I can read) So, How can I do to "purge" the descriptor unused into the server ??? thanx for your help :) -- Unsubscribe info

Re: help on socket connexion

2005-09-15 Thread znort
Hello, Ok, part of code... If I run a client test (loop of 60 connection) to connect to the server, all the fork/connection are ok... but sometimes all the fork still "hang" in the process list even if I stop the client (sorry but the code is "as is") thanx for your help static int su=0; s

Re: help on socket connexion

2005-09-15 Thread Corinna Vinschen
On Sep 15 01:13, znort wrote: > Hello everybody, > > Could U help me please it's very important of course :( There's nobody called "U" on this list, sorry. > I'm doing (trying exactly) a little client/serveur tcp programm. > [...] > Now If I run a sample client test with a loop which try to conn

help on socket connexion

2005-09-14 Thread znort
Hello everybody, Could U help me please it's very important of course :( I'm doing (trying exactly) a little client/serveur tcp programm. the skeleton is classic (from server side) main() { fd_set readfds, rmask; struct timeval tv; int sd; ... sd = create_socket(); ...