Dear Adam,

thanks very much for your reply.


Adam Kemp wrote
> 
> 1. Close the socket outside of any locked mutexes.
> 

Well, this is a partial workaround only because the socket.Close method
blocks indefinitely (or at least for a very long time, it never returned
when we hit the problem), so you will always have a blocked thread somewhere
and you will be running into troubles...


Adam Kemp wrote
> 
> 2. Added a call to Shutdown before Close. You said you already tried this, 
> but I noticed that we also pass in SocketShutdown.Both
> 

Yes, we already tried the Both option, as well as the other two :).

We have debugged through Mono source code and found out that the call blocks
in Close_internal which is called in socket.Dispose which, in turn, is
called by socket.Close. I have created a bug report at bugzilla but I still
hope I can receive some help or workaround suggestion.

Thanks

Alex






--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/socket-Close-problem-tp4656277p4656292.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to