Home > Back-end >  About how to delete before TServerSocket block type multi-thread communication communication thread
About how to delete before TServerSocket block type multi-thread communication communication thread

Time:05-25

With TServerSocket obstruction type multithreaded server network communication, each TServerSocket only connect a client, a corresponding device (a + 1 to port IP), the client for various reasons after interruption, automatically reconnection, then how to deal with thread? Delete the thread, resulting in memory is more and more big, the feeling to overflow.
TServerSocket listening port if there are multiple access equipment, namely there are multiple clients, and how to ensure that each device (port + IP only certain equipment), there is only a communication thread to communicate?

Bother everybody to help, thank you

CodePudding user response:

About how to set up in a new thread in SrvGetThread before delete before communication thread, at present there are memory delete. FreeOnTerminate=false;
  • Related