GetWebResponse() throws timeout exceptions after a few requests on Mono/Linux -


i have application sends requests server. use getwebresponse() method of webclient class sending requests. after few requests, starts throwing timeout exceptions. happens on mono/linux. same code runs without exceptions on .net/windows. have ideas might problem?

note: tried setting timeout , readwritetimeout properties of requests no luck.

i try these possible alternatives try solve problem:

  1. upgrade mono 3.0.x. there have been lot of fixes in last months around webrequests.
  2. if above doesn't help, try mono 3.2 (as defaults use new garbage collector, faster, called sgen).
  3. if above doesn't help, build own mono (master branch), this important pull request has been merged recently.
  4. if above doesn't help, use "--server" flag when calling mono executable (this feature available in last version of mono, need compile master branch).
  5. if above doesn't help, cc in this bug, think i'll have time in august implement fix it, , maybe helps you.

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -