Re: Correct way to force kill a thread.
Re: Correct way to force kill a thread.
- Subject: Re: Correct way to force kill a thread.
- From: Jerry Krinock <email@hidden>
- Date: Wed, 22 Jun 2005 13:33:35 -0700
on 05/06/22 12:32, Ben D. Jones at email@hidden wrote:
> Well... I'll have to take a look at it. I reviewed those constants
> and am unsure how to manuipulate them from CURLHandle. I'm asking
> this question in the CURLHandle mailing list as well. Thanks for the
> input, still working on it.
>> On Jun 21, 2005, at 1:27 PM, John Stiles wrote:
>>
>>> There is no way to force-kill a thread cleanly. You will leak
>>> memory, objects, network connections, etc. OTOH, you can force-
>>> kill a separate process cleanly and they are not expensive to create.
Ben, this is good advice from John. I recently grappled my way through this
same tunnel of dead ends. I heard about CURL but ended up with:
NSURL -> NSURLRequest -> NSConnection
You can set a timeout in NSURLRequest and manually cancel in NSConnection.
To reduce development time, avoid starting new threads whenever possible.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden