Newsgroups: comp.parallel.pvm
From: glass@tavosf.iso.dec.com (Yossi Glass)
Subject: Re: libpvm: pvmmctl() connect: Connection refused
Organization: Digital Israel
Date: 11 Jul 1995 14:33:15 GMT
Message-ID: <3tu23b$t2b@mrnews.mro.dec.com>

I have made some progress:

The error message is issued from lpvm.c code (by pvm_tc_conreq()). I am 
attaching part of this routine, with the line where the error is happening 
marked with ***.

I still don't have any idea why this happens.

Yossi.

--------------------------------------------------------------------------
Yossi Glass                           phone (972) 9-593254  (DTN 882-3254)
Digital Equipment (DEC) Ltd. Israel   fax   (972) 9-542530
email: glass@tavosf.iso.dec.com
--------------------------------------------------------------------------


The marked (***) line below generates the 'connection refused' error:

        if (pcbp = ttpcb_find(up->ub_src)) { 
                if (debugmask & TDMROUTE) {
                        sprintf(pvmtxt, "pvmmctl() crossed CONREQ from t%x\n",
                                        up->ub_src);
                        pvmlogerror(pvmtxt);
                }
                if (pcbp->tt_state == TTCONWAIT) {
                        if (buf[0] == '/') {
#ifdef NOUNIXDOM
                                sprintf(pvmtxt,
                                "pvmmctl() CONREQ from t%x, Unix domain socket u
nsupported\n",
                                                up->ub_src);
                                pvmlogerror(pvmtxt);

#else /*NOUNIXDOM*/
                                BZERO((char*)&uns, sizeof(uns));
                                uns.sun_family = AF_UNIX;
                                strcpy(uns.sun_path, buf);
***                                while ((i = connect(pcbp->tt_fd, (struct sockadd
r*)&uns,
                                                sizeof(uns))) == -1
                                                && errno == EINTR)
                                        ;
                                if (i == -1)
                                        pvmlogperror("pvmmctl() connect 1");
                                else
                                        pcbp->tt_state = TTOPEN;
#endif /*NOUNIXDOM*/



--------------------------------------------------------------------------


