Hello everyone. My problem: i have a small app written in c++(linux: fedora core 1), which is listening on a given port, receives a query word, then it searches a database, for it and it returns to the client an answer(array of strings), and then it closes the conection (small daemon, multithreaded). Even if i close the conection on the client side too, after I successfully received the answer, the connection however remains in TIME_WAIT for a very long time, causing the server to reach max connections, and stop responding. What i am seeking help for is: how to reduce time_wait ?
Please Help ! THX.