Skip to content

Event Stream through http library not functioning when hostname in server.listen function supplied #6541

Closed
@rianadon

Description

@rianadon
  • Version: v6.0.0
  • Platform: Windows 10 (x64), build 14332
  • Subsystem: http

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 the http.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    netIssues and PRs related to the net subsystem.questionIssues that look for answers.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions