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.
2011-10-15 03:34:09 +02:00
2011-10-15 02:12:53 +02:00
2011-10-15 03:34:09 +02:00
2011-10-15 02:50:16 +02:00
2011-10-10 18:18:56 -07:00
2011-10-10 18:18:56 -07:00
2011-08-26 20:38:45 +00:00
2011-09-12 21:48:30 +00:00
2011-09-17 18:22:09 -07:00
2011-10-12 14:51:25 -07:00
2011-10-11 13:41:33 -07:00

Evented I/O for V8 javascript.

To build:

Unix/Macintosh (requires python >= 2.5.2):

./configure
make
make install

Windows:

vcbuild.bat

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers

Languages
JavaScript 65.4%
C++ 22.6%
Python 8.4%
C 2.1%
HTML 0.5%
Other 0.8%