node.js - Nodejs Accepting connection blocks a main process -


var http = require("http");  http.createserver(function(req, res) {     console.log("connected"); }).listen(80); 

it simple spinet of code doesn't work spoused to. when connect 3 clients @ same time should print connected 3 times. doesnt, prints once waits connection time out, accepts one. non blocking stuff node promised or doing smth wrong ?

ps. worked should before. no idea happened.

for test nodejs application browser. firefox doesn't allow multiple connections same host/path while previous 1 wasnt closed.

get / http/1.1 /1 http/1.1

with scenario works fine. if u test non blocking accepting , stuff use curl or smth else.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -