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