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

aynchronous web services connection end in Close_Wait state

tom
Hi all, I hope I can explain my problem clearly.

I have a .NET c# windows application calling a localhost web service
using
asynchronous callback.

While still waiting for the result, the user decides to end the
application,
my application then cast the applicable IAsyncResult to a
WebClientAsyncResult object and call the Abort() method of the latter
object.

Everything is fine, however, it left the server side with the
Close_Wait
connection state. (Under TCP term, it means the server still waiting
for the
ACK from the client). How can I make sure the .NET window application
will
send the ACK after calling the above Abort()?

I am using XP Pro, the IIS only allows max. 10 connections, the
Close_Wait
state connection will be kept opened for a very long time.

I have searched intensively but I can not find a solution. Hope someone
out
there can help!

Rgs
Tom

Nov 23 '05 #1
1 5042
Hi tom.

This is not a perfect solution.
Do you know WS-Eventing? WS-Eventing is asynchronous Web Service spec.
Anyway,
First You can set IIS Time-out options.
Web Service have a dicection. so General Web Service use by-direction. (Call
and Receive result). If you see the WSDL Spec, you can get informaiton of Web
Service direction options.

"tom" wrote:
Hi all, I hope I can explain my problem clearly.

I have a .NET c# windows application calling a localhost web service
using
asynchronous callback.

While still waiting for the result, the user decides to end the
application,
my application then cast the applicable IAsyncResult to a
WebClientAsyncResult object and call the Abort() method of the latter
object.

Everything is fine, however, it left the server side with the
Close_Wait
connection state. (Under TCP term, it means the server still waiting
for the
ACK from the client). How can I make sure the .NET window application
will
send the ACK after calling the above Abort()?

I am using XP Pro, the IIS only allows max. 10 connections, the
Close_Wait
state connection will be kept opened for a very long time.

I have searched intensively but I can not find a solution. Hope someone
out
there can help!

Rgs
Tom

Nov 23 '05 #2

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

Similar topics

0
by: tom | last post by:
Hi all, I hope I can explain my problem clearly. I have a .NET c# windows application calling a localhost web service using asynchronous callback. While still waiting for the result, the user...
0
by: dabuskol | last post by:
Hi Guys I've created a program in c# that reads data from different port at the same time - so far it was ok connection to 5 ports at the same time using sockets. My concern now is if the...
2
by: Ollie | last post by:
okay before anyone says I shouldn't use session state in a web services don't both..... I have 2 web services that both use sesssion state and share the session state between the web services,...
0
by: Holger Steinestel | last post by:
Hello, I have a problem with the TCPClient class. After closing the connection with the Close() method, the connection on the Linux server remains open with the CLOSE_WAIT status. I found...
18
by: Larry Herbinaux | last post by:
I'm having issues with garbage collection with my long-standing service process. If you could review and point me in the right direction it would be of great help. If there are any helpful...
7
by: C Jay Pemberton Jr | last post by:
I am attempting to do the following, query indexing services through SQL Server SQL Server 2000/Visual Studio 2003 I have a linked server created called Web_service that points to a Server...
2
by: yvan | last post by:
Hi, Here is my client/server scenario: Step1: Client connects to server and sends data sucessfully (using Socket.Send()). Step2: Server gracefully exists (calls Socket.Shutdown() and...
0
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting...
11
by: User Groups | last post by:
I want to have an asp page that can connect to a TCP listener and send some data to it. I have done some coding and was able to send data to the listener but for one time only. As soon as a...
1
by: tvnaidu | last post by:
I have receiver socket on 8901 and sender socket on 9801, I can see receiver quue going up and state "CLOSE_WAIT" and sender Connection established, but receiver side an error, any idea?. tcp ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.