T
TBATravel
Hi,
Ours is an ASP.NET 2.0 web application interacting with a third-party web
service hosted on Tomcat servers.
When client application submits the web request to the web service from the
Production servers, we observe the frequent occurrence of the error 'The
request was aborted: The request was canceled. at
System.Net.HttpWebRequest.GetResponse()'.
The status of the web exception received is ‘RequestCanceled’, which is the
default status.
In these cases, it is observed that no request from the ASP.NET client is
hitting the Tomcat servers and the time at which the error is getting logged
is almost instantaneous after submitting the request. So, it looks like the
connection to the server is not available when the client application expects
it to be open.
This issue is affecting our existing customers to a greater extent.
Can you please let us know the cause for this issue and the solution for the
same?
Note : From the information available, we understand that one possible
solution for this issue is - setting ‘HttpWebRequest.KeepAlive = false’. But
we also understand that this would slow down the process by opening a new
connection for each request. Hence we are hesitant to follow this approach,
as our application is live and several customers are currently using it.
Obviously we do not want to slow down the response times.
Can you please let us know whether setting this ‘KeepAlive’ to ‘false’ be
advisable and the impact of the same?
Ours is an ASP.NET 2.0 web application interacting with a third-party web
service hosted on Tomcat servers.
When client application submits the web request to the web service from the
Production servers, we observe the frequent occurrence of the error 'The
request was aborted: The request was canceled. at
System.Net.HttpWebRequest.GetResponse()'.
The status of the web exception received is ‘RequestCanceled’, which is the
default status.
In these cases, it is observed that no request from the ASP.NET client is
hitting the Tomcat servers and the time at which the error is getting logged
is almost instantaneous after submitting the request. So, it looks like the
connection to the server is not available when the client application expects
it to be open.
This issue is affecting our existing customers to a greater extent.
Can you please let us know the cause for this issue and the solution for the
same?
Note : From the information available, we understand that one possible
solution for this issue is - setting ‘HttpWebRequest.KeepAlive = false’. But
we also understand that this would slow down the process by opening a new
connection for each request. Hence we are hesitant to follow this approach,
as our application is live and several customers are currently using it.
Obviously we do not want to slow down the response times.
Can you please let us know whether setting this ‘KeepAlive’ to ‘false’ be
advisable and the impact of the same?