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

shahbour shahbour at gmail.com
Thu Jun 28 22:35:08 UTC 2012


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.


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.

More information about the Mono-devel-list mailing list