From:	AITGW::"klein@SATURN.GLASSBORO.EDU" 19-MAR-1992 05:30:10.46
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@VM1.NoDak.EDU>
CC:	
Subj:	RE: Is there a fix to ANU NEWS UCX longjump bug

Received: by AITGW.DECnet (utk-mail11 v1.5) ; Thu, 19 Mar 92 05:29:03 EST
Received: from vm1.NoDak.edu by aitgw.ge.com (5.65/GE Gateway 1.5)
	id AA09705; Thu, 19 Mar 92 05:28:49 -0500
Message-Id: <9203191028.AA09705@aitgw.ge.com>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP V2R2)
   with BSMTP id 1660; Thu, 19 Mar 92 04:24:56 CST
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 8848; Thu, 19 Mar 92 04:24:51 CST
Date:         Wed, 18 Mar 1992 19:16:52 GMT
Reply-To: klein@SATURN.GLASSBORO.EDU
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
Comments:     Warning -- original Sender: tag was news@GBORO.GLASSBORO.EDU
From: klein@SATURN.GLASSBORO.EDU
Subject:      RE: Is there a fix to ANU NEWS UCX longjump bug
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@VM1.NoDak.EDU>
 
In article <920224193258.16b82@SAO.AARNET.EDU.AU>, Geoff Huston <GIH900@SAO.AARN
ET.EDU.AU> writes:
> (Apologies for the last posting - finger trouble :-(  )
>
>>We are using ANU NEWS version 6.0-3 here in the University of Joensuu.
>>We happen to have UCX 1.3 as our TCP/IP software.
>>There seems to be frequent errors:
>>
>>%C-F-LONGJMP, longjmp requested
>
> The problem is that UCX expects the application to request TCP
> keepalives when opening the socket (which NEWS does not
> in most versions of the code).
>
> The fix is to request keepalives in the open call. I don't
> have the manuals here at home, but your C manual describes
> how to request keepalives on the TCP socket.
>
> Geoff
 
        I think I've got a fix for this. First, you need to edit NEWSREMCLIENT.C
changing the line that looks like this:
 
        if ( (sys$qiow(0,net_chan,IO$_SETMODE,&read_iosb,0,0&sck_parm,
                        0,&lhst_adrs,0,0,0)
 
to look like:
 
        if ( (sys$qiow(0,net_chan,IO$_SETMODE,&read)iosb,0,0,&sck_parm,
                        0x01000000|SOCKOPT$M_KEEPALIVE,&lhst_adrs,0,0,0)
 
You can search for IO$_SETMODE to find this line. It only occurs once in the
file. Next, you need to run NEWSBUILD and tell it to use UCXQIOS. That should
do the trick.
 
   Bruce Klein
   Network Specialist
   Glassboro State College
