Article delegate-en/1841 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:<_A1840@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Win2k Server: FATAL: inherited handle [0] NNN is not socket
22 Aug 2002 18:35:06 GMT feedback@delegate.org (Yutaka Sato)


In message <_A1840@delegate-en.ML_>
on 08/22/02(22:46:26) you p74dabdyi-mnhltawnynjr.ml@ml.delegate.org wrote:
 |Version L gives the following.  Thanks.

Thank you.  Maybe I've got the reason of the problem.

 |(WIN) 40:19 [2128] SystemStatus:Running MaxSockets:32767 MaxUdpDg:65467
 |(WIN) 40:19 [2128] Sockets(33/33/256:123/573): 564 565 566 580 581 582 604 605 606 860/2 861/2 862/2 888/2 889/2 890/2 904 905 906 948 949 950 964 965 966 1012 1013 1014 1028 1029 1030 1152 1153 1154
...
 |(WIN) 40:19 [1500] SystemStatus:Running MaxSockets:32767 MaxUdpDg:65467
*|(WIN) 40:19 [2128] connect(704,1171) = 0
 |(WIN) 40:19 [1500] Sockets(44/33/256:111/882): 552# 564 565 566 580 581 582
 |596# 600# 604 000 000 000/X# 860/2 861/2 862/2 876/2# 888/2 889/2 890/2 904 905 906 936# 948 949 950 964 965 966 984# 1000# 1012 1013 1014 1028 1029 1030 1048# 1056# 1060# 1152 1153 1154
...
*|(WIN) 40:19 [1500] accept(1060,1171) = 1196 [127.0.0.1:1172]
 |(WIN) 40:19 [1500] PID=1500 SELF_HANDLE=1148
 |(WIN) 40:19 [1500] INHERIT: 1056->732 (close_source=0,1056/46)
 |(WIN) 40:19 [1500] INHERIT: 596->736 (close_source=0,596/9)
 |(WIN) 40:19 [1500] INHERIT: 936->740 (close_source=0,936/18)
 |(WIN) 40:19 [2128] inheritance recv() = 368
 |(WIN) 40:19 [2128] STARTUP: SPAWN_ENVIRON=1171, got[368], ppid=1500,pmode=1
 |(WIN) 40:19 [2128] [0] PPID=1500/744 CLSOCK=[1056->732]
 |(WIN) 40:19 [2128] [0] inheritSOCK -- closesocket(1056) 0,0
 |(WIN) 40:19 [2128] FATAL: inherited handle[0] 732 is not socket (10038)

The original socket (1056) to be inherited by duplicating it to the
handle (732) in the target (child) process, is marked as 1056# which
means it is marked as non-inheritable.  Thus both it and its copy
are not inherited to the child.

It is the problematic difference from usual situation like in
<_A1839@delegate-en.ML_>

So I need to inspect why/when it is marked as non-inheritable, and
try to make it inheritable.  To do so, I made another test
version "M" and uploaded to here.
Could you test it in the same way (but with -W4 option in this time) ?

<URL:ftp://ftp.delegate.org/pub/DeleGate/tmp/dg7910m.exe> or
<URL:ftp://www.delegate.org/pub/DeleGate/tmp/dg7910m.exe>

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


> ./dg7910m.exe -P9999 -f ADMIN=who@where -W4
(WIN) 24:18 [1416] setNonblockingSocket(7,1)=0
<DeleGate/8.0.0 by ysato@delegate.org> [1416] -P9999 READY
DGROOT=d:/Program Files/DeleGate
ADMIN=who@where
AIST Research Product No. 2000-ETL-198715-01
Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
Copyright (c) 2001-2002 National Institute of Advanced Industrial Science and Technology (AIST)
(WIN) 24:20 [1416] setNonblockingSocket(20,1)=0
(WIN) 24:21 [1416] #### accept() = 616 (flags=1)
(WIN) 24:21 [1828] arg[0] DeleGate
(WIN) 24:21 [1828] arg[1] 9999/0/9/-1/29/0/1/0/18/10/8/32/0/1/0//192.168.1.1:2694//0
(WIN) 24:21 [1828] arg[2] (Sticky)
(WIN) 24:21 [1828] arg[3] _startTime=1030040658
(WIN) 24:21 [1828] arg[4] _alivePeers=0
(WIN) 24:21 [1828] arg[5] LOGFILE=9999
(WIN) 24:21 [1828] arg[6] _execPath=d:\ysato\7910X\800h\800l\dg7910m.exe
(WIN) 24:21 [1828] arg[7] -P9999
(WIN) 24:21 [1828] arg[8] -f
(WIN) 24:21 [1828] arg[9] ADMIN=who@where
(WIN) 24:21 [1828] arg[10] -W4
(WIN) 24:21 [1828] arg[11] HOSTS=localhost/127.0.0.1,i-chan/192.168.1.81
(WIN) 24:21 [1828] arg[12] -L0x20/8
(WIN) 24:21 [1828] WinSock option "-WSAV:1.1" ReqVer:101 Result:0 Errno:0
(WIN) 24:21 [1828] Version:101 HighVersion:202 Description:WinSock 2.0
(WIN) 24:21 [1828] SystemStatus:Running MaxSockets:32767 MaxUdpDg:65467
(WIN) 24:21 [1828] Sockets(33/33/256:142/241): 140 141 142 168 169 170 196 197 198 532/2 533/2 534/2 544/2 545/2 546/2 568 569 570 580 581 582 596 597 598 608 609 610 616 617 618 624 625 626
(WIN) 24:21 [1416] WinSock option "-WSAV:1.1" ReqVer:101 Result:0 Errno:0
(WIN) 24:21 [1416] Version:101 HighVersion:202 Description:WinSock 2.0
(WIN) 24:21 [1416] SystemStatus:Running MaxSockets:32767 MaxUdpDg:65467
(WIN) 24:21 [1828] connect(332,2630) = 0
(WIN) 24:22 [1416] Sockets(33/33/256:142/550): 140 141 142 168 169 170 196 197 198 532/2 533/2 534/2 544/2 545/2 546/2 568 569 570 580 581 582 596 597 598 608 609 610 616 617 618 624 625 626
(WIN) 24:22 [1416] accept(624,2630) = 724 [127.0.0.1:2631]
(WIN) 24:22 [1416] PID=1416 SELF_HANDLE=624
(WIN) 24:22 [1416] #### DUPHANDLE: 624,616 (flags=1)
(WIN) 24:22 [1416] #### DUPHANDLE: 624,616 => 652,348 ok=1,errno=0
(WIN) 24:22 [1416] INHERIT: 616->348 (close_source=0,616/29)
(WIN) 24:22 [1416] #### DUPHANDLE: 624,196 (flags=1)
(WIN) 24:22 [1416] #### DUPHANDLE: 624,196 => 652,352 ok=1,errno=0
(WIN) 24:22 [1416] INHERIT: 196->352 (close_source=0,196/9)
(WIN) 24:22 [1416] #### DUPHANDLE: 624,568 (flags=1)
(WIN) 24:22 [1416] #### DUPHANDLE: 624,568 => 652,356 ok=1,errno=0
(WIN) 24:22 [1416] INHERIT: 568->356 (close_source=0,568/18)
(WIN) 24:22 [1828] inheritance recv() = 368
(WIN) 24:22 [1828] STARTUP: SPAWN_ENVIRON=2630, got[368], ppid=1416,pmode=1
(WIN) 24:22 [1828] [0] PPID=1416/360 CLSOCK=[616->348]
(WIN) 24:22 [1416] spawn() = 652, children(alive=1,total=1)
(WIN) 24:22 [1828] [0] inheritSOCK -- closesocket(616) 1,1
(WIN) 24:22 [1828] -- SOCKET 1*(348/21) opened fork()
(WIN) 24:22 [1828] PARENT=1416, PORT=2630, CLSOCK[0]=348/21:1 [192.168.1.1]
(WIN) 24:22 [1828] [1] PPID=1416/360 CLSOCK=[196->352]
(WIN) 24:22 [1828] [1] inheritSOCK -- closesocket(196) 1,1
(WIN) 24:22 [1828] -- SOCKET 1*(352/22) opened fork()
(WIN) 24:22 [1828] PARENT=1416, PORT=2630, CLSOCK[1]=352/22:1 [0.0.0.0]
(WIN) 24:22 [1828] [2] PPID=1416/360 CLSOCK=[568->356]
(WIN) 24:22 [1828] [2] inheritSOCK -- closesocket(568) 1,1
(WIN) 24:22 [1828] -- SOCKET 1*(356/23) opened fork()
(WIN) 24:22 [1828] PARENT=1416, PORT=2630, CLSOCK[2]=356/23:1 [127.0.0.1]
(WIN) 24:22 [1828] [3] PPID=1416/360 CLSOCK=[-1->-1]
(WIN) 24:22 [1828] [4] PPID=1416/360 CLSOCK=[-1->-1]
(WIN) 24:22 [1828] [5] PPID=1416/360 CLSOCK=[-1->-1]
(WIN) 24:22 [1828] [6] PPID=1416/360 CLSOCK=[-1->-1]
(WIN) 24:22 [1828] [7] PPID=1416/360 CLSOCK=[-1->-1]
(WIN) 24:22 [1828] gettimeofday(129870,0) = [1030040662,353000]
--

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