Re: How to "kill" a tcp port...
From: Jako Menkveld (jako.menkveld_at_envalue.ch)
Date: 02/04/05
- Next message: Magnus Krisell: "Re: how to auto-update a text file before closing it"
- Previous message: Dmitriy Lapshin [C# / .NET MVP]: "Re: How do I make a C# UserControl into an OCX file for VB6 use?"
- In reply to: Aquila Deus: "Re: How to "kill" a tcp port..."
- Next in thread: Aquila Deus: "Re: How to "kill" a tcp port..."
- Reply: Aquila Deus: "Re: How to "kill" a tcp port..."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Feb 2005 10:31:04 -0000
"Aquila Deus" <aquila.deus@gmail.com> wrote in message
news:1107512389.581833.316910@g14g2000cwa.googlegroups.com...
> Jako Menkveld wrote:
>> Rob
>>
>> I'll give that a try. Are you saying there is no way of closing the
> socket
>> from the Server side then?
>
> 1.If the server process (not appdomain) dies without closing the port,
> the OS will kill it.
I also thought this would be the case, but for some reason the OS (Win XP by
the way), keeps the connection open because the client-side was still
connected. It doesn't make a lot of sense, but that's what seems to happen.
>
> 2.TCP itself should give the client an error if the server dies without
> closing the connection. Maybe it is ignored by .NET remoting?
I can really comment on that, once again, I would have expected something
like that to happen, but no luck there either.
>
> What I don't understand is that your netstat shows the port was still
> listening after server quit.. Did the server process really quit?
>
The server process did die (can't see it in Task Manager for any user). The
interesting thing is that if I run netstat -o and get the process ID of the
listener, I can't find that process ID in Task Manager either and it is
different from the original server's process ID.
- Next message: Magnus Krisell: "Re: how to auto-update a text file before closing it"
- Previous message: Dmitriy Lapshin [C# / .NET MVP]: "Re: How do I make a C# UserControl into an OCX file for VB6 use?"
- In reply to: Aquila Deus: "Re: How to "kill" a tcp port..."
- Next in thread: Aquila Deus: "Re: How to "kill" a tcp port..."
- Reply: Aquila Deus: "Re: How to "kill" a tcp port..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|