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 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-14 06:16 UTC by Eric Tummers
Modified: 2012-05-14 06:46 UTC (History)
2 users (show)

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


Attachments
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
Details


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:
Status:
NEW

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\
BUILD\mono-2.10.8\mcs\class\System\System.Net.Sockets\NetworkStream.cs:443
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\
class\System\System.Net\ResponseStream.cs:129
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
stem\System.Net\ResponseStream.cs:153
at System.ServiceModel.Channels.Http.HttpRequestContext.InternalReply (System.
ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00157] in C:\cygwin\tmp\
monobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\System.ServiceMo
del.Channels.Http\HttpRequestContext.cs:160
at System.ServiceModel.Channels.Http.HttpRequestContext.Reply (System.ServiceM
odel.Channels.Message msg, TimeSpan timeout) [0x00000] in C:\cygwin\tmp\monobuil
d\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\System.ServiceModel.Chan
nels.Http\HttpRequestContext.cs:101
at System.ServiceModel.Dispatcher.MessageProcessingContext.Reply (Boolean useT
imeout) [0x00026] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\S
ystem.ServiceModel\System.ServiceModel.Dispatcher\MessageProcessingContext.cs:96

at System.ServiceModel.Dispatcher.OperationInvokerHandler.Reply (System.Servic
eModel.Dispatcher.MessageProcessingContext mrc, Boolean useTimeout) [0x0001d] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\S
ystem.ServiceModel.Dispatcher\OperationInvokerHandler.cs:69
at System.ServiceModel.Dispatcher.OperationInvokerHandler.ProcessRequest (Syst
em.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00044] in C:\cygwin\
tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\System.Servi
ceModel.Dispatcher\OperationInvokerHandler.cs:29
at System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestCh
ain (System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in C
:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\Sys
tem.ServiceModel.Dispatcher\BaseRequestProcessorHandler.cs:15
at System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestCh
ain (System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00017] in C
:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\Sys
tem.ServiceModel.Dispatcher\BaseRequestProcessorHandler.cs:16
at System.ServiceModel.Dispatcher.HandlersChain.ProcessRequestChain (System.Se
rviceModel.Dispatcher.MessageProcessingContext mrc) [0x0000b] in C:\cygwin\tmp\m
onobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\System.ServiceMod
el.Dispatcher\BaseRequestProcessor.cs:72
at System.ServiceModel.Dispatcher.BaseRequestProcessor.ProcessRequest (System.
ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00018] in C:\cygwin\tmp
\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.ServiceModel\System.ServiceM
odel.Dispatcher\BaseRequestProcessor.cs:26
Comment 1 Zoltan Varga 2012-05-14 06:46:20 UTC
-> wcf.