Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support automatic listening on Windows #18

Open
fbbdev opened this issue Oct 18, 2016 · 1 comment
Open

Support automatic listening on Windows #18

fbbdev opened this issue Oct 18, 2016 · 1 comment
Assignees

Comments

@fbbdev
Copy link
Owner

fbbdev commented Oct 18, 2016

On windows (especially with Microsoft IIS) the FastCGI socket is still passed as the stdin handle, but the handle is not 0 (like on POSIX systems).
It can be obtained by a call to GetStdHandle(STD_INPUT_HANDLE) from kernel32.dll. This currently requires a dependency on a native extension.

fbbdev added a commit that referenced this issue Oct 18, 2016
Replace { fd: 0 } with process.stdin, which should have
better compatibility with Windows.

Partial fix for #18
@fbbdev
Copy link
Owner Author

fbbdev commented Oct 18, 2016

The problem should be partially resolved by listening on process.stdin in place of { fd: 0 }. I still don't know how to check whether the stdin handle is a socket or pipe on Windows (isServer() still not working).

@fbbdev fbbdev self-assigned this Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant