URL:
<http://savannah.gnu.org/bugs/?20163>
Summary: Thread safety of -[GSHTTPURLHandle
loadInForeground]
Project: GNUstep
Submitted by: iamleeg
Submitted on: Wednesday 06/13/2007 at 12:38
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The attached program will attempt to fetch from an NSURLHandle multiple
times, spawning multiple threads to do it. On apple-apple-* it works as
expected, and every fetch results in some data being available. On gnu-gnu-*
it doesn't work reliably, with more than one worker thread. Sometimes it's
completely successful, but sometimes some of the -[NSURLHandle
loadInForeground] requests return nil and, as I've been testing with HTTP
URLs, also don't have an NSHTTPPropertyStatusCodeKey; it seems like the
method returns without actually having performed the load.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wednesday 06/13/2007 at 12:38 Name: NSURLHandleThreads.m Size: 3kB
By: iamleeg
<http://savannah.gnu.org/bugs/download.php?file_id=13037>
-------------------------------------------------------
Date: Wednesday 06/13/2007 at 12:38 Name: GNUmakefile Size: 166B By:
iamleeg
<http://savannah.gnu.org/bugs/download.php?file_id=13038>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20163>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep