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

Running scan/node-debug step freezes on windows #4

Open
duluca opened this issue Jul 6, 2014 · 1 comment
Open

Running scan/node-debug step freezes on windows #4

duluca opened this issue Jul 6, 2014 · 1 comment

Comments

@duluca
Copy link

duluca commented Jul 6, 2014

Console output:

bug-clinic run scan.js

TAP version 13
listening
HTTP: SERVER new http connection
HTTP: outgoing message end.
HTTP: server socket close
# (anonymous)
ok 1 exited without errors
ok 2 got expected response from server
*[this is where it gets stuck]*

scan.js:

 var request = require("http").request;

 var contentType = "text/html";
 var body = "<html>" +
            "<head><title>hi</title></head>" +
            "<body><p>yo</p></body>" +
            "</html>";

 var headers = {
   host : "localhost",
   port : 9876,
   method : "GET",
   headers : {
     "content-type"   : contentType,
     //"content-length" : body.length,
     "requested-by"   : "Request"
   }
 };

 var yolo = request(headers, function (res) {
   res.setEncoding("utf8");

   res.on("data", function (data) {
     console.log("BODY: " + data);
   });

   res.on("end", function () {
     console.error("done!");
   });
 });

yolo.end();
@othiym23
Copy link
Owner

othiym23 commented Jul 6, 2014

Thanks! Once I get back to a machine with Windows on it I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants