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)
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
Received on 2008-11-05
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