From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,2c15cd92dd7e3b61,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-04-03 07:43:47 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!gatech!swrinde!ihnp4.ucsd.edu!library.ucla.edu!news.mic.ucla.edu!nntp.club.cc.cmu.edu!godot.cc.duq.edu!birdie-blue.cis.pitt.edu!dsinc!cgh!paul From: paul@cgh.cgh.com (Paul Homchick) Subject: DCE Client/Server Exceptions Message-ID: <1994Apr3.144347.27715@cgh.cgh.com> Summary: How do you control server reactions to client death? or vise/versa? Keywords: dce rpc osf client server Organization: Chimitt Gilman Homchick, Inc. Date: Sun, 3 Apr 1994 14:43:47 GMT 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