Article delegate-en/194 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A193@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Fatal Error in Win95 version of 5.8.5]
01 Jan 1999 09:24:46 GMT ysato@etl.go.jp (Yutaka Sato 佐藤豊)


Hi Mark,

On 01/01/99(16:26) you Mark Peacock <px4aabdyi-dyd2yvdua6xr.ml@ml.delegate.org> wrote
in <_A193@delegate-en.ML_>
 |I'm trying to run DeleGate 5.8.5 which I pulled from
 |ftp://wall.etl.go.jp/pub/DeleGate/bin/windows/latest/.  I don't doubt that
 |DeleGate is a highly functional program.  I'm just trying to figure out why
 |it's not working for me.

Ok, then let's try shooting the bug in your environment.  To tell the
truth, I'm little familiar with Windows and not so clearly remember
the porting to it I did two years ago, and the bug does not appear in
my Windows95 environment, so I appreciate your help if you would.
The message shown in your former mail

 >     FATAL: inherited handle[2] 21 is not a socket

is produced at rary/windows.c and it is relevant to the behavior of
the inheritance of sockets in Win32 + WinSock, which act differently
in Win95 and WinNT, about which I could not clearly understand.

I created a test version of DeleGate/5.8.5 and placed it at 
"ftp://ftp.etl.go.jp/pub/DeleGate/tmp/dg585x.exe".  This modified
version works like DeleGate running with "-w" option but does not
produces bunch of irrelevant logs.  The result in my environment is
shown bellow, where I did manually connect the DeleGate's port
using telnet.  Could you show me what will happen on your Win95?

C:\tmp>dg585x -P80 ADMIN=ysato@etl.go.jp
DeleGate/5.8.5 (December 29, 1998)
AIST Research Product No. 1994-ETL-8715-1
Copyright (c) 1994-1998 Yutaka Sato
Copyright (c) 1994-1998 Electrotechnical Laboratry (ETL), AIST, MITI
--
FTP: <URL:ftp://ftp.etl.go.jp/pub/DeleGate/>
WWW: <URL:http://www.etl.go.jp/~ysato/>
Mailing-List: <URL:mailto:delegate@etl.go.jp>
              <URL:http://wall.etl.go.jp/delegate/ml/>
<DeleGate/5.8.5 by ysato@etl.go.jp> [-246407] -P80 READY
AIST Research Product No. 1994-ETL-8715-1
Copyright (c) 1994-1998 Yutaka Sato
Copyright (c) 1994-1998 Electrotechnical Laboratry (ETL), AIST, MITI
(WIN) 15:24 [-239559] STARTUP: SPAWN_ENVIRON=1523, got[108], ppid=-246407,pmode=1
(WIN) 15:24 [-239559] PPID=-246407/23 CLSOCK=[29->11]
(WIN) 15:24 [-239559] PARENT=-246407, PORT=1523, CLSOCK[0]=11/20:1 [192.31.200.69]
(WIN) 15:24 [-239559] PPID=-246407/23 CLSOCK=[14->14]
(WIN) 15:24 [-239559] PARENT=-246407, PORT=1523, CLSOCK[1]=14/21:1 [0.0.0.0]
(WIN) 15:24 [-239559] PPID=-246407/23 CLSOCK=[22->22]
(WIN) 15:24 [-239559] PARENT=-246407, PORT=1523, CLSOCK[2]=22/22:1 [127.0.0.1]
(WIN) 15:24 [-239559] get INHERIT_SOCK=11/20
(WIN) 15:24 [-239559] get INHERIT_SOCK=14/21
(WIN) 15:24 [-239559] get INHERIT_SOCK=22/22


In this version, I tried a modification bellow which may luckily
hit the bug.

*** ../dist/delegate5.8.5/rary/windows.c	Tue Dec 22 05:02:51 1998
--- windows.c	Fri Jan  1 18:12:13 1999
***************
*** 1118,1125 ****
--- 1118,1129 ----
  	LV("PPID=%d/%d CLSOCK=[%d->%d]",ppid,pphandle,pclsock,nclsock);
  
  	/* CLSOCK possibly inherited (WindowsNT) */
+ 	if( 0 < getpid() )
  	if( 0 <= pclsock && pclsock != nclsock )
+ 	{
+ 		LV("closesocket(%d)",pclsock);
  		closesocket(pclsock);
+ 	}
  
  	if( 0 <= nclsock ){
  		if( !ISSOCK(nclsock) ){



Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V