12-12-2018, 12:39 AM
(12-12-2018, 12:28 AM)Madammar Wrote: i see the more clients it has the longer time it takes to disconnect , i just notice it took 4 minutes to disconnect 600 clients
Under normal conditions, it should not take that long to disconnect so many clients. On the other hand, TIdScheduler.TerminateAllYarns() does call Sleep(500) in a loop until the ActiveYarns list is empty, so worse case scenario it may take awhile if client threads are not terminating themselves in a timely manner.