473,386 Members | 1,779 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,386 software developers and data experts.

Underlying Connection Was Closed on a Send

I have a problem when the HTTP keep alive is set to true on a server. When a
other server call a web service to that server (the one with the HTTP keep
alive is at true) I receive randomly a "Underlying connection was closed on a
send" if I retry a few second after, everything works well. This can append
10 times a day in a production environnement. I do not want to disable the
HTTP Keep alive and I do not want to code a retry on error in my application.
Is there a way to prevent the lost of connection?

Thanks!
Nov 19 '05 #1
2 1267
you should not use keepalive with a webservice. also as webservice calls are
not reliable, you should always have retry logic.

-- bruce (sqlwork.com)

"Jeff_Lav" <Je*****@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
I have a problem when the HTTP keep alive is set to true on a server. When
a
other server call a web service to that server (the one with the HTTP keep
alive is at true) I receive randomly a "Underlying connection was closed
on a
send" if I retry a few second after, everything works well. This can
append
10 times a day in a production environnement. I do not want to disable the
HTTP Keep alive and I do not want to code a retry on error in my
application.
Is there a way to prevent the lost of connection?

Thanks!

Nov 19 '05 #2
Thanks Bruce,

But I really need to use the "HTTP Keep Alive" for 2 reasons :
- For performance. There is some performance issues when the HTTP Keep
Alive is not acitve.
- For integrated security. When the HTTP Keep alive is not active you
cannot call on the same server another web service using integrated security
(I don't understand why but it's like that...)

We have a lot of applications and open the code for doing some retry will be
a lot of job. Also I find that strange that we have to worried about that
kind of stuff at that level. What I meen is the level of abstraction with the
proxy class is pretty high, when we call a web service we do not code TCP/IP
socket opening and other network stuff like that everyting is handle by
framework and that thing should be to... This is what I think...

Jeff

"Bruce Barker" wrote:
you should not use keepalive with a webservice. also as webservice calls are
not reliable, you should always have retry logic.

-- bruce (sqlwork.com)

"Jeff_Lav" <Je*****@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
I have a problem when the HTTP keep alive is set to true on a server. When
a
other server call a web service to that server (the one with the HTTP keep
alive is at true) I receive randomly a "Underlying connection was closed
on a
send" if I retry a few second after, everything works well. This can
append
10 times a day in a production environnement. I do not want to disable the
HTTP Keep alive and I do not want to code a retry on error in my
application.
Is there a way to prevent the lost of connection?

Thanks!


Nov 19 '05 #3

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

Similar topics

26
by: Rajeev Tipnis | last post by:
http://support.microsoft.com/default.aspx?scid=kb;en- us;819450 Questions: 1) Is this patch (fix) applicable to the .NET 1.1 Framework as well? That is, if we have Framework 1.1 (On...
1
by: Fredrik L | last post by:
Hi, We have an application outside the firewall who talks to a webservice inside the firewall. 9 times of 10 this works, but sometimes we got the error "The underlying connection was closed: An...
4
by: Matthew.DelVecchio | last post by:
hello, i am developing an ASP.NET web app that consumes a 3rd party vendor webservice. it is my first one so while ive done my homework, im not an expert on the matter. our partner's...
1
by: Tim Reynolds | last post by:
Team, From a windows service, we consume a web service on another server and occasionally receive System.Net.WebException: The underlying connection was closed:. For some clients we call, we do...
3
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously...
2
by: =?Utf-8?B?RnJpZWRoZWxtRWljaGlu?= | last post by:
I am consuming continously my own web-services on a localhost client with a rate of perhaps 35 request/response-pairs a minute. I am using "invoke-id=1", so there is at the same time only one...
4
by: =?Utf-8?B?QXJuYXVkIFZpc2N1c2k=?= | last post by:
Hi all, we meet a problem since we use WCF to consume java WebServices. Often the first call works then the second raises the following error : "The underlying connection was closed : " We...
4
by: Sin Jeong-hun | last post by:
I don't get the message so it's hard to debug that, but some of my clients report that they get "The underlying connection was closed unexpectedly" exception. According to this site (http://...
1
by: Gx3r0 | last post by:
0I have a windows service I created that checks for data to post to an off site webservice over SSL. The service checks every 10 seconds for data to send, if there is data it opens a connection to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.