Re: socket troubles

2005-09-17 Thread znort
Ok, If I use ProcessExplorer for example (anither great tool), I see each time I run/stop a sequence of the client test program I'm losing a lot of handles on my server process But I don't understand where are these leaks !? I've done all the close() of socket in the fork/children (I hope) Pleas

Re: socket troubles

2005-09-17 Thread znort
Hi, thanks for the advices, and sorry for the VC++ project So, I added sigchld() event and replaced shutdown() by close() It works cool But now I try to change server code to use select() for my children and I have the same behaviour (anyway, it takes more "client queries" to hang...) so

socket troubles

2005-09-16 Thread znort
Hello, Sorry, I've not been very accurate in my last post so, this time, I'll post the test client/server I try to make a little client/server tcp. server side #include #include #include #include #include #ifdef SUN #include #else #include #endif #include #include #incl

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

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(); ...

signal trouble

2005-08-23 Thread znort
Could you tell/help me why the little code : #include #include #include jmp_buf context; int yog(int n) { char *p=NULL; printf("pass %d\n", n); if (n<=2) return 1; strcpy(p, "dfldflflmflkklfklflkmfdlfldfldlfdlkfd");// must crash of course !!! return 1; } void