Timothy J Fontaine
19d43f852e
export HandleWrap Unref Ref in tcp/udp/timer/pipe
13 years ago
Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
Ben Noordhuis
039fac633e
deps: upgrade libuv to a478847
The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
13 years ago
Ben Noordhuis
3883f22ad1
pipe_wrap: don't assert() on pipe accept errors
Pass errors to the onconnection callback.
13 years ago
Bert Belder
b673d0670f
Net.js: fix UCS2 write crash due to inconsistent naming
13 years ago
Bert Belder
0e57aafbb1
Optimize writing strings with Socket.write
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
ssuda
249c3c165a
Avoiding unnecessary ToString() calls
String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>
13 years ago
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Ben Noordhuis
296b7a580b
cluster: support passing of named pipes
Fixes triggered assertion:
Assertion failed: (0 && "bad address family"), function GetPeerName,
file ../src/tcp_wrap.cc, line 237.
Fixes #2870 .
13 years ago
Ben Noordhuis
0685707bc6
tcp, pipe: don't assert on uv_accept() errors
It's possible for a new connection to be closed in the window between the
accept() syscall and the call to uv_accept(). Deal with it and move on, don't
assert.
13 years ago
Igor Zinkovsky
c7771bc2ec
set readable/writable for pipes
13 years ago
Ben Noordhuis
74a8215a86
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
isaacs
cf20b6bf65
Fix #2257 pause/resume semantics for stdin
This makes it so that the stdin TTY-wrap stream gets ref'ed on
.resume() and unref'ed on .pause()
The semantics of the names "pause" and "resume" are a bit weird, but the
important thing is that this corrects an API change from 0.4 -> 0.6
which made it impossible to read from stdin multiple times, without
knowing when it might end up being closed. If no one has it open, this
lets the process die naturally.
LGTM'd by @ry
13 years ago
Igor Zinkovsky
99c9d19184
binding for uv_pipe_pending_instances
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Igor Zinkovsky
6545a6dc5d
make updates to work with latest libuv api changes
13 years ago
Ryan Dahl
60818b957c
Add missing copyright headers
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Ryan Dahl
471c5701c3
uv_write2 uv_read2_start binding
13 years ago
Ryan Dahl
311fe737e8
Upgrade libuv to 60c639f
Also remove unused src/stdio_wrap.cc
13 years ago
Ryan Dahl
7e62bc9828
Move process.stdout unref hack to handle_wrap.cc
See #1726
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
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Ryan Dahl
f01b241057
add wrapper for uv_spawn
process.binding('process_wrap')
14 years ago
Ben Noordhuis
83b82f900f
wrap: upgrade pipe_wrap and tcp_wrap to new libuv API
14 years ago
Igor Zinkovsky
187fe27a6e
stdio binding + javascript to enable process.stdin.listen()
14 years ago
Ben Noordhuis
37cbc355d5
net: add bindings to libuv pipe API
14 years ago
Ryan Dahl
6050af4fd7
net_uv: properly initialize writeQueueSize
Fixes simple/test-tcp-wrap-listen.js
14 years ago
Ryan Dahl
85404c5c55
Move HandleWrap rules to one place
14 years ago
Ryan Dahl
61cda1e34e
PipeWrap should use HandleWrap::Close
14 years ago
Ryan Dahl
cc0f608c7c
Add pipe_wrap
14 years ago
Ryan Dahl
1ae148909a
Abstract StreamWrap from TCPWrap
14 years ago
Henry Rawas
f3f3b12364
net_uv: getsockname binding
14 years ago
Henry Rawas
3a96469319
connect-timeout callbacks after close
14 years ago
Ryan Dahl
130be31cff
Upgrade libuv to 1be48f12a0
and bindings for new req interface
14 years ago
Ryan Dahl
7a782164b9
Upgrade libuv to f5ff8694
14 years ago
Ben Noordhuis
13a521e698
Fix off-by-one error in assertion.
Fixes test/simple/test-http-buffer-sanity.js
14 years ago
Ryan Dahl
0df2f74d36
Add several asserts to tcp_wrap
OnAlloc and OnConnection should not be occurring after uv_close was
called on the handle.
14 years ago
Henry Rawas
b6f6a1ca11
ipv6 node
14 years ago
Ryan Dahl
412e413edc
Upgrade libuv
14 years ago
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
14 years ago
Ryan Dahl
9696c27c45
tcp_wrap: implement shutdown
14 years ago