Article delegate-en/2230 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]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] RE : [DeleGate-En] RE : [DeleGate-En] RE : [DeleGate-En:2223] RE : [DeleGate-En] RE : [DeleGate-En] stupid and newbie question
04 May 2003 13:56:49 GMT "RAAD, Umar" <pvmeabdyi-h3lluodymrxr.ml@ml.delegate.org>


I'm sorry... The problem is still here.
I'll reinstall a clean system at home and I'll test again.

I'll send you the results...
I don't know if this can help but in the attachment is what appeared on my CL when I used the new EXE.

Good luck.

Cheers

Umar

P.S: I didn't test it but should this problem also appear in the OS2 version?

> -----Message d'origine-----
> De : Yutaka Sato [mailto:feedback@delegate.org]
> Envoyé : samedi, 3. mai 2003 22:09
> À : feedback@delegate.org
> Cc : RAAD, Umar
> Objet : Re: [DeleGate-En] RE : [DeleGate-En] RE : [DeleGate-En:2223] RE :
> [DeleGate-En] RE : [DeleGate-En] stupid and newbie question
> 
> Hi,
> 
> Searching Google with "duplicatehandle inherit socket handle bug",
> I can find many pages which seems to be similar to this problem
> in another server applications on Windows:
> 
>  http://sources.redhat.com/ml/cygwin/1999-05/msg00685.html
>  >This routine is neccessary to run socket applications on Win95 (I don't
> know
>  >if it neccessary for Win98). The problem is in socket() call on W95 -
> the
>  >socket returned is non-inherittable handle (unlike NT and Unixes, where
>  >sockets are inherittable). To fix the problem DuplicateHandle call is
> used
>  >to create inherittable handle, and original handle is closed. But,
>  >unfortunately, that raises a problem with winsock proxy dll.
> 
>  http://www.apache.jp/viewcvs.cgi/httpd-2.0/server/mpm/winnt/mpm_winnt.c
>  > if the particular stacks' bug is that it won't associate a handle as a
>  > socket if that handle was duped with DuplicateHandle().  Other bugs
> with
> 
> If you see the same problem with Cygwin or Apache on your machines,
> probably the problem with DeleGate is caused by the same reason.
> 
> The problem seems to be able to be described as "a socket handle
> duplicated
> by DuplicateHandle() is not inherited to a child process, or it is not
> recognized as a socket handle by a child process, on some WinSock
> implementations".
> 
> So I made a test version of DeleGate which does not do DuplicatHandle()
> and placed it at "ftp://ftp.delegate.org/pub/DeleGate/tmp/dg860a.exe"
> Could you test it like dg860a.exe -f -W4 -P8080 ADMIN=... ?
> 
> Cheers,
> Yutaka
> --
>   @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
>  ( - ) National Institute of Advanced Industrial Science and Technology
> (AIST)
> _<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
> Do the more with the less -- B. Fuller

C:\>dg860a.exe -f -W4 -P8080 ADMIN=raa@dsr.ch SERVER=http
(WIN) 44:28 [548] #### socket() = 468
(WIN) 44:28 [548] Sockets(7/7/256:24/363): 456 457 458 468 476/2 477/2 478/2
(WIN) 44:28 [548] setNonblockingSocket(7,1)=0
(WIN) 44:28 [548] setNonblockingSocket(7,0)=0
(WIN) 44:28 [548] #### socket() = 472
(WIN) 44:28 [548] Sockets(5/7/256:24/372): 456 457 458 468/2 472/2 477/2# 478/2#

(WIN) 44:28 [548] #### bind(472/7) = 0
(WIN) 44:28 [548] #### socket() = 504
(WIN) 44:28 [548] Sockets(9/11/256:33/387): 456 457 458 468/2 472/2 477/2# 478/2
# 504/2 512/2 513/2 514/2
(WIN) 44:28 [548] #### bind(504/8) = 0
(WIN) 44:28 [548] setNonblockingSocket(10,1)=0
(WIN) 44:28 [548] #### socket() = 524
(WIN) 44:28 [548] Sockets(21/23/256:60/453): 456 457 458 468/2 472/2 477/2# 478/
2# 504/2 512/2 513/2 514/2 524 540 548/2 549/2 550/2 560 572/2 573/2 574/2 576/2
 577/2 578/2
(WIN) 44:28 [548] #### bind(524/11) = 0
#### 524/11 / 8080
<DeleGate/8.6.0 by ysato AT delegate DOT org> [548] -P8080 READY
DGROOT=C:/Program Files/DeleGate
ADMIN=raa@dsr.ch
AIST Product ID: 2000-ETL-198715-01, H14PRO-049
Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
Copyright (c) 2001-2003 National Institute of Advanced Industrial Science and Te
chnology (AIST)
(WIN) 44:28 [548] setNonblockingSocket(19,1)=0
(WIN) 46:29 [548] #### accept() = 624/20
(WIN) 46:29 [580] arg[0] DeleGate
(WIN) 46:29 [580] arg[1] 8080/0/11/-1/41/0/1/0/17/30/6/32/20/0/1/-1//10.60.1.173
:1189//0
(WIN) 46:29 [580] arg[2] (Sticky)
(WIN) 46:29 [580] arg[3] _startTime=1052055868
(WIN) 46:29 [580] arg[4] _alivePeers=0
(WIN) 46:29 [580] arg[5] LOGFILE=8080
(WIN) 46:29 [580] arg[6] _execPath=C:\\dg860a.exe
(WIN) 46:29 [580] arg[7] -f
(WIN) 46:29 [580] arg[8] -W4
(WIN) 46:29 [580] arg[9] -P8080
(WIN) 46:29 [580] arg[10] ADMIN=raa@dsr.ch
(WIN) 46:29 [580] arg[11] SERVER=http
(WIN) 46:29 [580] arg[12] HOSTS=localhost/127.0.0.1,.af-local/127.0.0.127,{PC-71
dsr.ch,PC-71}/10.60.1.15
(WIN) 46:29 [580] arg[13] -L0x20/6
(WIN) 46:29 [580] WinSock option "-WSAV:2.2" ReqVer:202 Result:0 Errno:0
(WIN) 46:29 [580] Version:202 HighVersion:202 Description:WinSock 2.0
(WIN) 46:29 [580] SystemStatus:Running MaxSockets:0 MaxUdpDg:0
(WIN) 46:29 [580] Sockets(36/36/256:129/198): 456 457 458 468/2 469/2 470/2 512/
2 513/2 514/2 548/2 549/2 550/2 572/2 573/2 574/2 576/2 577/2 578/2 652/2 653/2
654/2 676/2 677/2 678/2 696/2 697/2 698/2 720/2 721/2 722/2 728/2 729/2 730/2 80
8/2 809/2 810/2
(WIN) 46:29 [580] Sockets(36/36/256:129/198): 456 457 458 468/2 469/2 470/2 512/
2 513/2 514/2 548/2 549/2 550/2 572/2 573/2 574/2 576/2 577/2 578/2 652/2 653/2
654/2 676/2 677/2 678/2 696/2 697/2 698/2 720/2 721/2 722/2 728/2 729/2 730/2 80
8/2 809/2 810/2
(WIN) 46:29 [548] WinSock option "-WSAV:2.2" ReqVer:202 Result:0 Errno:0
(WIN) 46:29 [548] Version:202 HighVersion:202 Description:WinSock 2.0
(WIN) 46:29 [548] SystemStatus:Running MaxSockets:0 MaxUdpDg:0
(WIN) 46:29 [580] connect(660,1700) = 0
(WIN) 46:29 [548] Sockets(45/47/256:129/612): 456 457 458 468/2 472/2 477/2# 478
/2# 504/2 512/2 513/2 514/2 524 540 548/2 549/2 550/2 560 572/2 573/2 574/2 576/
2 577/2 578/2 624 644 652/2 653/2 654/2 664 676/2 677/2 678/2 688 696/2 697/2 69
8/2 708 720/2 721/2 722/2 728/2 729/2 730/2 808/2 809/2 810/2 816
(WIN) 46:29 [548] Sockets(45/47/256:129/612): 456 457 458 468/2 472/2 477/2# 478
/2# 504/2 512/2 513/2 514/2 524 540 548/2 549/2 550/2 560 572/2 573/2 574/2 576/
2 577/2 578/2 624 644 652/2 653/2 654/2 664 676/2 677/2 678/2 688 696/2 697/2 69
8/2 708 720/2 721/2 722/2 728/2 729/2 730/2 808/2 809/2 810/2 816
(WIN) 46:29 [548] accept(816,1700) = 740 [127.0.0.1:1703]
(WIN) 46:29 [580] inheritance recv() = 368
(WIN) 46:29 [580] STARTUP: SPAWN_ENVIRON=1700, got[368], ppid=548,pmode=1
(WIN) 46:30 [580] [0] PPID=548/712 CLSOCK=[624->624]
(WIN) 46:30 [580] FATAL: inherited handle[0] 624 is not socket
(WIN) 46:30 [548] spawn() = 800 [580], children(alive=1,total=1)
(WIN) 46:45 [548] wait3() = 800 [580], status=-1, children(alive=0,total=1)

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