|Don't ask to ask, just ask|
Re: Client-Server appby NetWallah (Canon)
|on Sep 27, 2018 at 17:17 UTC||Need Help??|
Thanks for posting the code, but there is nothing by way of diagnostic information on the actual problem.
Could you quantify "A lot of data" ?
The only suspicious thing I see in the code is :
Where you use a global (to the while loop) for $client_socket.
I would rather see that as:
and delete the global declaration.
My thinking (Probably pretty low probability, unless a lot of clients attempt simultaneous connect) is that this may prevent a potential race condition where the content of $client_socket changes before the invoked thread has had a chance to copy it.
Memory fault -- brain fried