Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Connection timeout (connection closing after 100 sec ) (http://www.velocityreviews.com/forums/t785615-connection-timeout-connection-closing-after-100-sec.html)

shmuel witman 12-04-2005 11:45 AM

Connection timeout (connection closing after 100 sec )
 
Hi,



Although I setting the Connection timeout of IIS 6.0 to 600 sec

I am still seeing the connection closing after 100 sec (via perfmon -
Current Connections of Web service).



The Enable HTTP Keep-Alives in the IIS is on.

And the client sends the HTTP header Connection: Keep-Alive.



Thanks

Shmuel





Peter Kelcey 12-05-2005 07:55 PM

Re: Connection timeout (connection closing after 100 sec )
 
Shmuel

There are a number of things that can affect timeouts on your web
service calls. Here's an overview

1) There is also a config setting in your machine.config that controls
the timeout for requests. The <httpRuntime> tag has an attribute called
executionTimeout that has a default of 90 seconds. It will affect the
timeout when you are not running underdebug mode.

2) In you web service you can user the Server.ScriptTimeout to set the
request timeout in terms of seconds

3) Finally (and probably most important to your scenario) the .NET
client proxy has a property called "Timeout". Have you set a value for
this property in your code? I think the default is 100 seconds. This
probably what is causing your timeout.

Hope that helps

Peter Kelcey


shmuel witman 12-06-2005 10:59 AM

Re: Connection timeout (connection closing after 100 sec )
 
Hi Peter,

In my question I asked about the connection that opens in the web server.

This connection should stay open until the end of the connection time or
renew on any new request



I think that your answer was about timeout of the request - response





You can this counter in prfmon app



Performance object: Web service

Counter: Current connections

(Current Connections is the current number of connections established with
the Web service)



Thanks

Shmuel


"Peter Kelcey" <Peter.Kelcey@telus.com> wrote in message
news:1133812511.346676.173080@g14g2000cwa.googlegr oups.com...
> Shmuel
>
> There are a number of things that can affect timeouts on your web
> service calls. Here's an overview
>
> 1) There is also a config setting in your machine.config that controls
> the timeout for requests. The <httpRuntime> tag has an attribute called
> executionTimeout that has a default of 90 seconds. It will affect the
> timeout when you are not running underdebug mode.
>
> 2) In you web service you can user the Server.ScriptTimeout to set the
> request timeout in terms of seconds
>
> 3) Finally (and probably most important to your scenario) the .NET
> client proxy has a property called "Timeout". Have you set a value for
> this property in your code? I think the default is 100 seconds. This
> probably what is causing your timeout.
>
> Hope that helps
>
> Peter Kelcey
>





All times are GMT. The time now is 10:41 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57