From: paul@cgh.cgh.com (Paul Homchick)
Subject: DCE Client/Server Exceptions
Date: Sun, 3 Apr 1994 14:43:47 GMT [thread overview]
Message-ID: <1994Apr3.144347.27715@cgh.cgh.com> (raw)
I am working on a DCE/RPC application that, strangely enough, has one
client and multiple servers. The servers are multi-threaded with one
section of code that talks to another application using sockets. This
section of code cannot be interrupted, and must complete or dire
things happen. Thus, when this section of code is entered, all other
threads are blocked.
My problem is that when a client dies unexpectedly, the server thread
also seems to die. I don't really understand this, because my reading
of the DCE documentation seems to indicate that the server/rpc code
should execute at least until the server tries to return to the client
under these circumstances. Alas, this does not seem to be the case.
Although the other threads come back to life, the communication with
the external application is left in a wedged state, and things soon
come to an ignominious end.
I imagine that there might be two approaches to this. 1st) (and best)
set the run-time to block client-death signals until I exit the
critical area of code, or 2nd) set some sort of exception handler that
will allow me to catch the notice of client death and clean up before I
allow the server thread to exit.
It seems that DCE/RPC must provide a way to control this, but I have
yet to find it. A bit of advice on approaches to the problem, where
to look in the documentation or, lists of appropriate rpc/dce function
calls would be appreciated.
Thanks!!!
--
Paul Homchick :UUCP {rutgers | uunet} !cbmvax!cgh!paul
Chimitt Gilman Homchick, Inc. :Internet paul@cgh.com
1111 West DeKalb Pike, Suite 101 :MCI PHOMCHICK
Wayne, PA 19087-2179 :GEnie HOMCHICK
next reply other threads:[~1994-04-03 14:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-04-03 14:43 Paul Homchick [this message]
1994-04-04 12:31 ` DCE Client/Server Exceptions Jon Mauney
1994-04-04 13:28 ` Rich Salz
1994-04-04 18:29 ` Seiichi Tatsukawa
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox