![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a web service client application that works fine when the requests rate is moderate. But when I crank up the request rate, I eventually receive an "Unable to connect to the remote server" exception. Running the "netstat -n" command at that point, I determined that all the TCP/IP ports in the range of 1025-5000 were in a TIME-WAIT state. Although this article refers to BizTalk (http://msdn2.microsoft.com/en-us/library/aa560610.aspx) I experience the exact same results. Is there a way to have the client side of a WebService request to re-use the same TCP/IP connection for every request sent to a given remote host? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thank you Michael for taking the time to reply. I read the article many times and I am aware of the ways to improve the situation. I took over someone else client side code written in C# and I'm afraid, .Net Web Services is not my forte. The code reads a file containing about 200,000 requests to be sent to a web application. For testing right now, the client code and the web application is on the same server. I think this forum is the right one, As the last statement of my original post indicates, I want to know whether it is possible with .Net Web Service to reuse the same connection (port) for every request. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |