cURL / Mailing Lists / curl-library / Single Mail


Question related to Re: How to stop TCP connections

From: <>
Date: Wed, 5 Nov 2008 19:47:44 +0000 (GMT)
I do a project similar to the one described in "Re: How to stop TCP connections
immediately?" (see Here you suggest that it is better to wait until the download that need to be cancelled is over rather than cancelling that thread. My question is that - is there any problem in cancelling the thread and using a thread cleanup routine (pthread_cleanup_push()) to do the necessary clean up? Would such an approach prevent any memory leaks?
Thank you,
Received on 2008-11-05