Re: TSocket & crash

From: Fons Rademakers (rdm@pcsalo.cern.ch)
Date: Thu Sep 03 1998 - 22:54:07 MEST


Hi Andrej,

   I'll try to make it more robust. However, all open TSockets are closed
(deleted) in the TROOT dtor.

Cheers, Fons.


> 
> Hi,
> 
> I have a problem with socket communication. When a client crashes or
> quits without deleting or closing TSocket, the server selects
> terminated TSocket with TMonitor->Select(). The subsequent
> TSocket->Recv(...) causes segmentation violation.
> A simple example of this is to kill hclient.C process, then hserv.C or
> hserv2.C crashes.
> Is it possible to protect against that? Could TROOT destructor
> check for opened sockets and close them?
> 
> Thanks, Andrej
> _____________________________________________________________
>    Andrej Filipcic,          E-mail: Andrej.Filipcic@ijs.si
>    Department of Experimental High Energy Physics - F9
>    Jozef Stefan Institute, Jamova 39, P.o.Box 3000
>    SI-1001 Ljubljana, Slovenia
>    Tel.: +386-61-177-3674    Fax: +386-61-125-7074
> -------------------------------------------------------------
> 


-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET