Alexis Campailla
bae545dab7
test: fix test-tcp-wrap-listen
If the call to writeBuffer completes asynchronously, we need to have
an oncomplete callback on the request object no matter what. The
writeQueueSize seems irrelvant to that regard.
Note that on Windows writeBuffer always completes asynchronously.
See related commit 9836a4eeda
11 years ago
Fedor Indutny
9836a4eeda
stream_wrap: use `uv_try_write` where possible
Use `uv_try_write` for string and buffer writes, thus avoiding to do
allocations and copying in some of the cases.
11 years ago
Ben Noordhuis
e1fe8d4ec0
test: fix up tests after internal api change
11 years ago
Trevor Norris
278183a902
{stream,udp,tls}_wrap: remove unused offset/length
The function arguments offset and length are now no longer used since
all I/O requests now use discretely allocated memory.
12 years ago
Bert Belder
0e57aafbb1
Optimize writing strings with Socket.write
13 years ago
Ben Noordhuis
fd29448be0
test: add missing copyright headers
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ryan Dahl
8cb5338f35
Fix test-tcp-wrap-listen
14 years ago
Ryan Dahl
97296e405c
tcp_wrap: add writeQueueSize
14 years ago
Ryan Dahl
ddc989333d
tcp_wrap: implement socket.connect()
14 years ago
Ryan Dahl
dae73dbd28
tcp_wrap: onread oncomplete parameter massage
14 years ago
Ryan Dahl
dafe32d3bf
tcp_wrap: implement write
14 years ago
Ryan Dahl
86214c9f16
tcp_wrap: Initial wrap of uv_read_start
14 years ago