[Mono-bugs] [Bug 312409] ThreadPool.RegisterWaitForSingleObject does not work
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jul 29 19:34:30 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=312409
User jhurliman at metaverseindustries.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=312409#c1
John Hurliman <jhurliman at metaverseindustries.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jhurliman at metaverseindustries.com
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #1 from John Hurliman <jhurliman at metaverseindustries.com> 2008-07-29 17:34:29 MDT ---
ThreadPool.RegisterWaitForSingleObject() doesn't appear to be working with an
IAsyncResult.AsyncWaitHandle from HttpWebRequest.BeginGetResponse() on Mono
1.9.1. Switching to IAsyncResult.AsyncWaitHandle.WaitOne() fixes the issue.
In other words, using the latest mono release (on both windows and linux), if i
create an HttpWebResponse and use IAsyncResult result =
request.BeginGetResponse(...);
ThreadPool.RegisterWaitForSingleObject(result.AsyncWaitHandle, ...); it fails
to wait for the operation to complete (result.IsCompleted will be false right
afterward). however if i instead use result.AsyncWaitHandle.WaitOne(); it works
fine.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list