[Mono-dev] System.Runtime.Remoting unit test hangs

Zoltan Varga vargaz at gmail.com
Sat Feb 7 14:48:03 EST 2009


Hi,

  Attached a smaller testcase which exhibits the second kind of hang.

         Zoltan

On Sat, Feb 7, 2009 at 8:45 PM, Zoltan Varga <vargaz at gmail.com> wrote:
> Hi People,
>
>   So these tests are still hanging, especially on the net 1.1 profile.
>
> What seems to happen is this:
> - HtttpClientTransportSink.AsyncProcessMessage () is called, which
> starts an async web request.
> - either no response is received from HttpWebRequest, ie.
> AsyncProcessResponseCallback is never called. This happens often,
>  but not every time.
> - or, AsyncProcessResponseCallback is called, which calls
> request.EndGetResponse (ar); which throws an exception on the net
>  1.1 profile, which is rethrown by this code:
>                                if (httpResponse == null || httpResponse.StatusCode !=
> HttpStatusCode.InternalServerError) {
>                                        throw;
>                                }
>
>  now this happens on a threadpool thread, so nobody handles the
> exception, the thread is aborted, thus the client never receives
>  a response, so it hangs.
>
> To repro:
> in System.Runtime.Remoting, run make check FIXTURE=Remoting.HttpAsyncCallTest
>
>                Zoltan
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remoting.cs
Type: text/x-csharp
Size: 6509 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090207/62951ffb/attachment.bin 


More information about the Mono-devel-list mailing list