Detecting dead/crashed clients at the server.



I have written a simple client/server remoting app. The client connects to the servers object, and the server signals the client through an event.
This works perfectly. (Keywords here; Singleton, marshalling, events, Activator.GetObject(..))

The only problem is that when a client does not correctly 'disconnect' from the server, the server keeps trying to send an event to the client, even though the client is no longer there. This will 'lock' the server. Only restarting the server component will 'solve' the problem.

I have read many posts of other peope with the same problem, but I cannot really get a proper solution.

Preferrably, I would like to do something in the event method itself, and I do not really want to keep track of clients by having them register through a method, adding something to a hashtable. I think the framwork should be able to solve this by itself, right?

If someone has a proper solution, or can point me to the correct resources... awesome!

Tino
[Exchange] MVP

.



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)

Loading