-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Event Stream through http library not functioning when hostname in server.listen function supplied #6541
Comments
Not sure I fully understand what’s going on, but something you should be aware of is that
(from https://nodejs.org/api/net.html#net_server_listen_port_hostname_backlog_callback) |
Thank you for getting back to me. I am basically just trying to get the code at this gist to work. When I don't specify the hostname in the Also, this seems to only happen in this Insider build of Windows (the example works when specifying the hostname on another computer running the latest non-Insider version of Windows 10). |
That suggests an issue with your Windows build or configuration. There's probably not much we can do about that. |
What does |
Yep. It returns Also, the |
This might actually be a problem with Windows. When using Also, using |
I tried running the same program on the laptop with a non-Insider build of Windows and accessing the sever from the laptop with build 14332 and the event stream doesn't work regardless of whether I supply a hostname argument or not to Also, when I stop the program, the messages sent through the event stream are transferred correctly. |
Do I understand correctly that your conclusion is that it's a problem with the Insider build? Can I suggest you close this issue in that case? |
I'm not exactly sure; that's why I've kept this open. As it seems as if there are no differences between Thank you for trying to help! |
First of all, this is coming from this issue if you need any more details.
I am currently running Windows Insider build 14322, and am encountering problems when trying to create an Event Stream through the HTTP module.
I downloaded the Node.js code and HTML file from this HTML5 Rocks tutorial, and the example works as it should.
However, If I change the
.listen(8000);
after thehttp.createServer
call to.listen(8000, 'localhost');
or.listen(8000, '0.0.0.0');
, the Event Stream to stop functioning and display as "pending" in the Chrome Dev tools rather than complete.I wrote a small program to simulate an HTTP request to the Event Source, and the HTTP request yields the same data but with different values for the Date header and data.
The text was updated successfully, but these errors were encountered: