I need someone to fix a memleak for me in a simple Linux based multithread TCP server. Anyone with good C/C++ knowledge should be able to fix it pretty quickly as the application does not have anything Linux special or dependant. The whole source code is just 310 lines of code!
The problem: The application is running 24/7 without a stop. With the time it runs the amounts of RAM it eats is growing, getting to a state where it eats all the RAM of the server.
Little info about the project:
This is a multithread TCP server listening for connections and spawning a new thread to handle each connection. When a client connects it sends a string with command to the TCP server. The server reads the command and do the appropriate action.
The memleak is probably somewhere related to the variables to which the threads read/write the necessary data
I will provide the project source code once I award the project to the selected bidding freelancer.
22 freelancers are bidding on average $24 for this job
Hi, Probably, you should also provide a client so that one can test all the use cases while searching for the memory leak I'm looking forward to working with you!
I have a lot of experience in multithreaded applications (c/c++/python/java/.Net). And in case you have only 310 lines of code it should be not so hard to find the root cause.