cURL / Mailing Lists / curl-library / Single Mail

curl-library

Question related to Re: How to stop TCP connections

From: <dhammika_at_wijesundera.com>
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 http://curl.haxx.se/mail/lib-2003-03/0102.html). 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,
Dhammika
Received on 2008-11-05