Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2004

Tip: Looking for answers? Try searching our database.

How to set the timeout and no. of accept request

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mullin Yu - 30 Apr 2004 03:43 GMT
i have a web services and sometime returns timeout exception back to
clients.

i want to know where to set the timeout and max no. of accepted request.
just want to see whether it help solve the problem.

thanks!

mullin
Jerry Goldin - 30 Apr 2004 16:38 GMT
I am not quite sure if this is what you are getting at, but it seems that
there is a problem deep inside the .NET code for ServicePoint (or the
HttpWebRequest's internal use of ServicePoints) which is being used by the
SoapHttpClientProtocol to send a request to a web service.  When HTTP
Keep-Alives are enabled and the Web-server closes the connection because of
idle time-out, the .NET code on the client sometimes doesn't seem to notice
the connection is closed and will attempt to re-use it (through the
ServicePoint) which will fail with a time-out exception on subsequent
requests to the server.  The client will, at this point, need to be
restarted.  To work around this problem, either turn off HTTP Keep-Alive on
the Web-server, if this is an option, or overload the
SoapHttpClientProtocol.GetWebRequest method on the client-proxy and set the
KeepAlive property of HttpWebRequest to false.

I hope this helps.

> i have a web services and sometime returns timeout exception back to
> clients.
[quoted text clipped - 5 lines]
>
> mullin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.