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

[DeleGate-En] Re: RE : [DeleGate-En] RE : [DeleGate-En:2223] RE : [DeleGate-En] RE : [DeleGate-En] stupid and newbie question
03 May 2003 20:09:01 GMT (Yutaka Sato)


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:
 >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.
 > 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

So I made a test version of DeleGate which does not do DuplicatHandle()
and placed it at ""
Could you test it like dg860a.exe -f -W4 -P8080 ADMIN=... ?

  @ @ Yutaka 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

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