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 / March 2005

Tip: Looking for answers? Try searching our database.

Web Service Call hangs from Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JD - 10 Mar 2005 13:44 GMT
We have two web service machines. Call one WS1 and the other WS2. They are
seperated by a firewall. WS1 handles web service calls and also calls web
services provided by WS2. Both machines do not get updated or restarted very
often. The problem is after some period of time, the web service call from
WS1 (within the ASP.NET process) to WS2 hangs and times out.

If I go to WS1 and open IE, I can get the WSDL from WS2, and if I use
another client on WS1 I can actually make the web service call successfully
to WS2 that fails within WS1 ASP.NET process. If I restart the WS1 ASP.NET
process, it starts working again.

I put in a web page that will be housed within the ASP.NET process on WS1.
It allows me to enter URLs and allows me to specify HTTP or TCP. When WS1
ASP.NET process gets into this state, I can enter the URL to WS2 and specify
HTTP, and it gives me the timeout. If I specify TCP it works. If I specify
any URL other than WS2, and specify HTTP or TCP, it works. So it seems
something in the HTTP library gets deadlocked and its associated with a
specific URL.

At first I thought it might be HTTP keep-alive. I configured IIS on WS1 and
WS2 to not use HTTP keep-alive and it continued to show up.

Any ideas?

TIA.
JD
Sami Vaaraniemi - 17 Mar 2005 08:04 GMT
> We have two web service machines. Call one WS1 and the other WS2. They are
> seperated by a firewall. WS1 handles web service calls and also calls web
[quoted text clipped - 23 lines]
>
> Any ideas?

This sounds like you might be running into the timeout problem described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scal
enetchapt10.asp

(search for the phrase 'unmanaged resource leak'). Basically, the problem is
that if the caller times out before the outbound web service call completes,
the socket is leaked. Follow the guidelines in the document to avoid these
problems.

Regards,
Sami

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.