Ryan Dahl
6cc0c9e6a9
Remove superfluous nextTick during server binding
This breaks fork().send({}, server._handle) after server.listen() because
server._handle is not set.
13 years ago
koichik
d6191f593d
net: fix error handling in listen()
Fixes #1894 .
13 years ago
Ben Noordhuis
0b92fa0e93
net: fix connect queue bugs
This commit fixes two bugs in the handling of write requests when the connect()
call is still in progress.
1. The deferred write request's size was counted twice towards `.bytesWritten`.
2. The callback was not called. After connecting, `Socket.write()` was called
with three arguments (data, encoding, cb) but it ignored the third argument.
Coincidentally fixes test/simple/test-net-connect-buffer.js.
13 years ago
Ben Noordhuis
6df574b744
net: properly account multi-byte chars in .bytesWritten
13 years ago
Simen Brekken
4b0e36810a
net: register net.Server callback only once
Only register once for listening when passing a callback to Server.listen(),
this prevents servers recycled using close() from invoking the callback when
Server.listen() is called later.
13 years ago
Ryan Dahl
25ff181300
Revert some changes made in 12486a6
Some of the perf improvements from many-writes-fix branch were accidentally
undone in that commit. This puts them back in.
13 years ago
Ryan Dahl
87339a22b1
introduce node cluster
13 years ago
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
13 years ago
Ryan Dahl
982b19dbd7
Adjust listenFD deprecation message. Remove test.
13 years ago
Ryan Dahl
12486a6437
Change API for sending handles
Does not support sending net.Server objects only raw TCPWrap objects.
13 years ago
Ryan Dahl
26c08a3f35
Do load balancing test in test-child-process-fork2.
13 years ago
Bert Belder
153629c99a
Some small optimizations
13 years ago
Ryan Dahl
29ec850478
Simplify arg parsing in String.write
13 years ago
Ben Noordhuis
1bb820a339
net: remove unconditional getpeername() call
Speeds up http_simple benchmark by about 1.0%
13 years ago
Bert Belder
ed65b7b375
Simplify writeReq handling in net_uv
13 years ago
Bert Belder
fcad5e35fd
Black hole tcp reads after destroy()
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ryan Dahl
fa2eaeafda
write-only streams should not shutdown
See
https://github.com/joyent/node/issues/1726#issuecomment-2207602
13 years ago
Ryan Dahl
6326b04b07
Fix test-regress-GH-819
Problem was exposed in 12798c6
.
13 years ago
Ryan Dahl
5cb1fd2e32
net.Socket(fd) should start readable and writable
13 years ago
Ryan Dahl
caaa59c559
Wrap uv_pipe_open, implement net.Stream(fd);
Fixes simple/test-child-process-ipc on unix.
13 years ago
Bert Belder
b5db0767d5
net_uv: fix 'set is undefined' error
13 years ago
Bert Belder
e20d0c1cd0
net-uv: correctly set socket.remoteAddress and -port
closes #1345
14 years ago
Ryan Dahl
e3413f08fd
net_uv: throw when people construct net.Socket(fd)
Easier to catch compatibility errors.
14 years ago
Ryan Dahl
c4454d2efc
net_uv: Don't error on ECONNRESET
Fixes #1571 .
14 years ago
Ryan Dahl
cf2e68d960
net_uv: handle read errors
14 years ago
Ben Noordhuis
fa378ee4d8
net: defer DNS lookup error events to next tick
net.createConnection() creates a net.Socket object
and immediately calls net.Socket.connect() on it.
There are no event listeners registered yet so
defer the error event to the next tick.
Fixes #1202 .
14 years ago
Ryan Dahl
3a219de586
net_uv: resume on closed net.Socket shouldn't crash
14 years ago
Ryan Dahl
3d4ae3ab4d
net_uv: pipes don't have getsockname
14 years ago
Ben Noordhuis
79f064f565
net: properly export remoteAddress to user land
Fixes failing test:
test/simple/test-net-remote-address-port.js
14 years ago
Ben Noordhuis
460614125b
tcp: propagate libuv tcp accept() errors to net_uv.js
14 years ago
Ryan Dahl
72c412767d
net_uv: Handle failed shutdown req
14 years ago
Ryan Dahl
4f03f1bead
net_uv: fix test/simple/test-pipe-file-to-http.js
14 years ago
Ben Noordhuis
b8c8e9c113
net_uv: add listenFD shim that throws when called
14 years ago
Ryan Dahl
e3ac47771c
child_process_uv: fix test-child-process-stdin and -ipc
14 years ago
Ryan Dahl
7772f21b60
initial pass at lib/child_process_uv.js
14 years ago
Igor Zinkovsky
187fe27a6e
stdio binding + javascript to enable process.stdin.listen()
14 years ago
Felix Geisendörfer
09ee29318f
Emit 'close' after all connections have closed
Fixes #1383
14 years ago
Alexander Uvarov
14b75a126f
Add Socket::bytesRead, Socket::bytesWritten
14 years ago
Ryan Dahl
daead5f5bb
win: fix simple/test-tls-client-abort.js
14 years ago
Ryan Dahl
8eb1edc8ea
net_uv: Fix test-net-server-bind
14 years ago
Ben Noordhuis
984dc057e3
net_uv: throw if Server.prototype.close() is called twice
Follows net_legacy behaviour.
14 years ago
Ben Noordhuis
8ddb334c2a
net_uv: emit 'close' event in Server.prototype.close()
14 years ago
Ben Noordhuis
07bcdc2f51
net_uv: release uv handle in Socket.prototype.destroy()
14 years ago
Ben Noordhuis
59b04427d3
net_uv: defer handle creation to connect() or bind() time
Fixes #1379 .
14 years ago
Ben Noordhuis
37cbc355d5
net: add bindings to libuv pipe API
14 years ago
Ryan Dahl
62f7c7961d
Upgrade libuv to d4563a1
14 years ago
Ryan Dahl
061ce7b0ac
net_uv: Fix simple/test-http-expect-continue.js
14 years ago
Henry Rawas
f3f3b12364
net_uv: getsockname binding
14 years ago
Henry Rawas
3a96469319
connect-timeout callbacks after close
14 years ago