473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Client Timeout - HELP

Dan
All,

I have a Web Service that validates a piece of data. However, the database
that the data comes from is mamouth. So, it may take a long time for the
validation query to complete.

Unforuntatley, I tend to get a timeout message on my client which is not
good. I want the client to wait until it gets a response. Can I adjust the
amount of time that it waits? If so where is that at?

Thanks!

Dan
Nov 21 '05 #1
2 4697
"Dan" <Da*@discussions.microsoft.com> wrote in message news:D8**********************************@microsof t.com...
that the data comes from is mamouth. So, it may take a long time for the
validation query to complete.

Unforuntatley, I tend to get a timeout message on my client which is not
good. I want the client to wait until it gets a response. Can I adjust the
amount of time that it waits? If so where is that at?


In a synchronous web service call, you can set a timeout period (in milliseconds)
using the Timeout property of your web service proxy, before you make any
web method calls on it.

However, if what you're receiving is a fault relating to HTTP response codes
404, 408, 500, 503 or 504 then it is a server time out. You can tell the client
to wait for Timeout.Infinite, but most servers will drop you after awhile, and
there's nothing you can do about that from the client.

If you have control over the server, and it's ASP.NET, then you can increase
the executionTimeout attribute value (defaults to 90 secs) on the <httpRuntime>
element in the "machine.config" file.
Derek Harmon
Nov 21 '05 #2
Just a word of caution, related to best practices

1. Adjusting the machine config file in develoment is a risky bet. The
machine config is typically managed by IT policy in production
environments, and it is always a poor bet to assume that IT will go along
with changes to the machine.config file during application install.

2. Find a way to make your validation faster. If it is taking longer than
90 seconds, you have other issues such as user-retry, user hates
application, user assumes it doesn't work, and load management issues in
high volume situations. You should try to make your designs accept and
respond (or complete) any web service call in subsecond measurements so
that you don't introduce the risk of exhausting the IIS thread pool. This
is again an area where production personnell will be very concerned if they
want to deploy your application on a shared server and your application is
poorly behaved.

My .02cents

Dan Rogers
--------------------
From: "Derek Harmon" <lo*******@msn.com>
References: <D8**********************************@microsoft.co m>
Subject: Re: Client Timeout - HELP
Date: Sat, 13 Nov 2004 23:57:26 -0500
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <eE**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: mailgw.infragistics.com 216.113.236.146
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7415
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

"Dan" <Da*@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
that the data comes from is mamouth. So, it may take a long time for the
validation query to complete.

Unforuntatley, I tend to get a timeout message on my client which is not
good. I want the client to wait until it gets a response. Can I adjust the
amount of time that it waits? If so where is that at?


In a synchronous web service call, you can set a timeout period (in
milliseconds)
using the Timeout property of your web service proxy, before you make any
web method calls on it.

However, if what you're receiving is a fault relating to HTTP response codes
404, 408, 500, 503 or 504 then it is a server time out. You can tell the
client
to wait for Timeout.Infinite, but most servers will drop you after awhile,
and
there's nothing you can do about that from the client.

If you have control over the server, and it's ASP.NET, then you can increase
the executionTimeout attribute value (defaults to 90 secs) on the
<httpRuntime>
element in the "machine.config" file.
Derek Harmon

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
1
by: Steve Caliendo | last post by:
Hi, How can I notify the client that their session is about to timeout? I've placed a timer into global.asax, but this, for example, doesn't work because it's not a page. ...
4
by: Edgardo Sepulveda | last post by:
Hi, one question, is there a limit on the numbers of sessions that a client can have? i dont know why but suddently, as i handle a lot of the user information with sessions, and also have added a...
4
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
9
by: timor.super | last post by:
Hi group, I've written a client/server application, using the dotnet sockets. In my server, I have a thread waiting for messages with : ret = currSocket.Receive(buffer, 1024,...
0
by: Bob | last post by:
Hi, i posted a few days ago the following problem: how to close a session after timeout is reached (let's say 15') when the user stops any activity on a page with client callback, which sent...
2
by: senglory | last post by:
My WCF: public interface IWorkbookService { DataTable GetDownpayments(KeyValuePair<int, string> sgm); } class WorkbookService : IWorkbookService
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.