Bug 3895 - WCF REST service throws exception when under load
Summary: WCF REST service throws exception when under load
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-03-14 06:16 UTC by Eric Tummers
Modified: 2012-05-14 06:46 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Console program hosting REST service (needs helloworld.html in the same folder) (6.46 KB, text/plain)
2012-03-14 06:16 UTC, Eric Tummers

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 3895 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Eric Tummers 2012-03-14 06:16:21 UTC
Created attachment 1514 [details]
Console program hosting REST service (needs helloworld.html in the same folder)

We developed a "webserver" based on a REST WCF service. The WebGet method will return the requested file as if it was in IIS / Apache / other webserver. 

Running this on dotNET 4.0 and hitting the url with IE9 will load the HTML file. Then pressing and holding F5 (refresh) will reload the file endlessly.

Running the same program on Mono 2.10.8 will load the file into IE9 and reload it a couple of times when holding F5, but eventually the program will crash hard with this output in the console:

Exception Write failure   at System.Net.Sockets.NetworkStream.Write (System.Byte
[] buffer, Int32 offset, Int32 size) [0x0008e] in C:\cygwin\tmp\monobuild\build\
at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset
, Int32 count) [0x00029] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\
at System.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32
count) [0x00092] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\Sy
at System.ServiceModel.Channels.Http.HttpRequestContext.InternalReply (System.
ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00157] in C:\cygwin\tmp\
at System.ServiceModel.Channels.Http.HttpRequestContext.Reply (System.ServiceM
odel.Channels.Message msg, TimeSpan timeout) [0x00000] in C:\cygwin\tmp\monobuil
at System.ServiceModel.Dispatcher.MessageProcessingContext.Reply (Boolean useT
imeout) [0x00026] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\S

at System.ServiceModel.Dispatcher.OperationInvokerHandler.Reply (System.Servic
eModel.Dispatcher.MessageProcessingContext mrc, Boolean useTimeout) [0x0001d] in
at System.ServiceModel.Dispatcher.OperationInvokerHandler.ProcessRequest (Syst
em.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00044] in C:\cygwin\
at System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestCh
ain (System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in C
at System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestCh
ain (System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00017] in C
at System.ServiceModel.Dispatcher.HandlersChain.ProcessRequestChain (System.Se
rviceModel.Dispatcher.MessageProcessingContext mrc) [0x0000b] in C:\cygwin\tmp\m
at System.ServiceModel.Dispatcher.BaseRequestProcessor.ProcessRequest (System.
ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00018] in C:\cygwin\tmp
Comment 1 Zoltan Varga 2012-05-14 06:46:20 UTC
-> wcf.