Home All Groups Group Topic Archive Search About

HttpWebRequest.GetResponse throws StackOverFlowException

Author
4 Sep 2006 1:45 PM
Niklas
Hi,

I am having a issue I couldn't figure out how to solve.

I have a function that does WebDav Request against Exchange Server 2003.
I can do about 3000 request and afterwards I get a StackOverFlowException on
HttpWebRequest.Create();
This is only a stress test that is causing this issue but I would still like
to know if there is any way of solving this.
I am using UnsafeAuthenticatedConnectionSharing and ConnectionGroupName on
the HttpWebRequest

Thank you for help

Author
4 Sep 2006 4:50 PM
Cowboy (Gregory A. Beamer)
Is the exception thrown on the client or the server?

If on the client, I would not worry about it, as you have exhausted stack
space on the client in a way that will never happen in real life. My
suggestion would be to stress from multiple machines rather than one.

On the server, you have to make sure the connections are cleaning up
properly. If you are still having an issue, you will need to scale this
system under that type of load, or tighten up the code to perform the
actions more quickly, or both.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
Show quote
"Niklas" <niklas@nospam.nospam> wrote in message
news:139FAA9B-CA36-422B-B425-A468E17FD50D@microsoft.com...
> Hi,
>
> I am having a issue I couldn't figure out how to solve.
>
> I have a function that does WebDav Request against Exchange Server 2003.
> I can do about 3000 request and afterwards I get a StackOverFlowException
> on
> HttpWebRequest.Create();
> This is only a stress test that is causing this issue but I would still
> like
> to know if there is any way of solving this.
> I am using UnsafeAuthenticatedConnectionSharing and ConnectionGroupName on
> the HttpWebRequest
>
> Thank you for help
Author
5 Sep 2006 12:35 PM
Niklas
Thanx for your help.

Solved the issue, just did too many stack pushes, and it just blew up and
HttpWebRequest.GetResponse

Show quote
"Cowboy (Gregory A. Beamer)" wrote:

> Is the exception thrown on the client or the server?
>
> If on the client, I would not worry about it, as you have exhausted stack
> space on the client in a way that will never happen in real life. My
> suggestion would be to stress from multiple machines rather than one.
>
> On the server, you have to make sure the connections are cleaning up
> properly. If you are still having an issue, you will need to scale this
> system under that type of load, or tighten up the code to perform the
> actions more quickly, or both.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> *************************************************
> Think outside the box!
> *************************************************
> "Niklas" <niklas@nospam.nospam> wrote in message
> news:139FAA9B-CA36-422B-B425-A468E17FD50D@microsoft.com...
> > Hi,
> >
> > I am having a issue I couldn't figure out how to solve.
> >
> > I have a function that does WebDav Request against Exchange Server 2003.
> > I can do about 3000 request and afterwards I get a StackOverFlowException
> > on
> > HttpWebRequest.Create();
> > This is only a stress test that is causing this issue but I would still
> > like
> > to know if there is any way of solving this.
> > I am using UnsafeAuthenticatedConnectionSharing and ConnectionGroupName on
> > the HttpWebRequest
> >
> > Thank you for help
>
>
>

AddThis Social Bookmark Button