Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
Fedor Indutny
af98fc9d5f
child_process: new stdio API for .spawn() method
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
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
Ben Noordhuis
880219645e
tcp, udp: share sockaddr-to-object function
Share AddressToJS() function between tcp_wrap.cc and udp_wrap.cc.
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
Shigeki Ohtsu
0d13142332
tcp: make getsockname() return address family as string
13 years ago
Ben Noordhuis
16fca262be
net: honor 'enable' flag in .setNoDelay()
Fixes #3096 .
13 years ago
Ben Noordhuis
036d907df7
tcp: root JS objects in HandleScope with Local<>
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
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
Ryan Dahl
e0a207c27a
Begin moving static vars into struct for isolates.
Only node.cc, stream_wrap.cc, and tcp_wrap.cc have been done. The rest still
need work.
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Bert Belder
189dd8f803
Fix line endings and trailing whitespace
13 years ago
Ryan Dahl
60818b957c
Add missing copyright headers
13 years ago
Igor Zinkovsky
3060266ff1
windows: enable pending accepts knob
13 years ago
Ben Noordhuis
ac379b3be1
net: bring back .setNoDelay() and .setKeepAlive()
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Ben Noordhuis
9193062e70
tcp_wrap: add sanity check asserts
13 years ago
Ryan Dahl
899358e797
Add test-child-process-fork2 and fixes to make it work
13 years ago
Ryan Dahl
471c5701c3
uv_write2 uv_read2_start binding
13 years ago
Bert Belder
f810998871
net_uv: use sufficient buffer to read sock/peername
14 years ago
Bert Belder
e20d0c1cd0
net-uv: correctly set socket.remoteAddress and -port
closes #1345
14 years ago
Bert Belder
c82ab45ee6
uv_getsockname got renamed
14 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Ben Noordhuis
9cb624986c
tcp_wrap: update after libuv API change
14 years ago
Ben Noordhuis
460614125b
tcp: propagate libuv tcp accept() errors to net_uv.js
14 years ago
Peter Bright
13d6a1f67f
Basic VC++ compatibility work.
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
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
0c7bf8132e
Abstract out HandleWrap class
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