[Mono-dev] WCF Fail with System.Net.Sockets.SocketException: Connection reset by peer

Rob Wilkens robwilkens at gmail.com
Fri Jun 29 11:08:57 UTC 2012

You mentioned you were working on your Mac.. Well I tested this, and on
Linux I couldn't reproduce it (mono verison (Debian, and also the latest version including my fixes,
and it seemed not to happen either way). 

I spent a lot of time trying to reproduce it on Linux and it never

The mac raised those exceptions, the Linux install did not (neither
crashed), but both continued to run as you described.

So, is this a mac specific issue to your knowledge?  Just curious. 


On 06/28/2012 06:35 PM, shahbour wrote:
> http://mono.1490590.n4.nabble.com/file/n4650235/TestWCFServer.zip
> TestWCFServer.zip 
> Hello Rob
> I am attaching a simple application to demonstrate the error we are getting.
> Unfortunately using the above example the server is not crashing but still
> it raise the error (note that in my live app , some time it do the same but
> crash more) 
> If you run the server like below you will notice the error
> mono --debug --trace=N:nothing TestWCFServer.exe
> Press enter to exit
> [0xb0a7d000:] EXCEPTION handling: System.Net.Sockets.SocketException:
> Connection reset by peer
> [0xb0a7d000:] EXCEPTION handling: System.IO.IOException: EndRead failure
> To run the example just start the server , then start the client and before
> getting the result back from server close it (Ctrl+C) 
> I put a delay in the server to demonstrate the request over internet and to
> have time to close it. After you close it by small time the application will
> raise the above error .
> Tomorrow I will change the client to a silver light application to simulate
> exactly my application because the server crash approximately every time I
> close the browser before getting the result in my live example.
> BR
> Shahbour
> --
> View this message in context: http://mono.1490590.n4.nabble.com/WCF-Fail-with-System-Net-Sockets-SocketException-Connection-reset-by-peer-tp4650173p4650235.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list