Hi, I've got a little problem developping an application with many threads involved. I know there is definetly something going wrong in my code because basically, what happens is that as soon as I launch my threads I cannot close any socket, in any of all the threads (even the one creating them). I'm not allowed to post the code here but there is nothing really particular than some sockets that does not close. I tried in UDP, so it's not a TIME_WAIT problem and none of my thread is listening on the socket while another thread is trying to close it. The thread closing the socket is the one opening it. The close returns 0 but the socket remains open in my "netstat" and I cannot rebind on it (not a setsockopt stuff b/c UDP). I just wanted to know if you guys already heard about a such problem.
Looking to isolate the problem I found the same behavior while trying to close a socket opened by another thread, while this thread recvfrom on it. I join the test code ... PS: I hope I post on the good ML, debian-devel seems adapted, even if the recent posts are not really about development problems. Best regards J. Bensamoun
test.c
Description: Binary data