Re: [evolution-patches] camel, make name lookup behave cancellable



patch looks good.

Jeff

On Tue, 2003-05-20 at 11:02, Not Zed wrote:
> This isn't intended for a 1.4 release, just something i was playing with
> tonight.  Its a manual diff too, something very odd is going on with my
> internet at the moment.
> 
> I'm not sure if there's a bug out for this, but here's a preliminary
> patch which makes hostname lookup behave as if its cancellable, even
> when the underlying pthread implementation doesn't cancel the thread
> immediately when you call pthread_cancel.
> 
> It basically leaves the child thread in a detatched state if we get a
> problem/cancellation, rather than trying to join it, and lets it clean
> itself up later, e.g. when the name lookup eventually times out or
> whatever.  It should properly handle all the various cleanup issues that
> can result from pre-emptive scheduling.
> 
> The same could/should be done for the gethostbyaddr stuff in the same
> file.
> 
> This should go part of the way of addressing the problem of the 'cancel
> button' not responding very well in some situations, e.g. when laptops
> change network settings.  Although other delays will come down to e.g.
> socket connect timeouts, which might need to be tweaked.
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]