Karl Skomski
8d5c1201f2
Check if a stream has a valid fd before read_start
Closes #3118
13 years ago
Ben Noordhuis
27061cc9f4
udp_wrap, stream_wrap: lazy init slab allocator
Create slab allocator when binding is initialized.
Add an AtExit handler to destroy the slab before the VM shuts down, it can't be
disposed when V8 is dead and Valgrind will complain about memory leaks.
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
13 years ago
Ben Noordhuis
7d2e68fdbd
stream_wrap: fix compilation errors
13 years ago
Bert Belder
4624cf1214
stream_wrap.cc: fix typo
13 years ago
Bert Belder
726ebad9bc
StreamWrap::WriteBuffer: remove superfluous arguments
13 years ago
Bert Belder
0e57aafbb1
Optimize writing strings with Socket.write
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
Bert Belder
3ec84a11f8
Slab allocator: don't attempt to shrink a non-buffer
13 years ago
Ben Noordhuis
1e13a2d242
stream_wrap: use new slab allocator
13 years ago
Ben Noordhuis
0f0557d78d
stream_wrap: fix signedness compiler warnings
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
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
e6a30bd107
Fix #2473
Tested in production.
See also http://code.google.com/p/v8/issues/detail?id=1889
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
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
899358e797
Add test-child-process-fork2 and fixes to make it work
13 years ago
Ryan Dahl
b413c77583
Support sending handles to other processes
Needs test.
13 years ago
Ryan Dahl
471c5701c3
uv_write2 uv_read2_start binding
13 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Ben Noordhuis
2aefea5a2f
stream_wrap: update after libuv API change
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
0c7bf8132e
Abstract out HandleWrap class
14 years ago
Ryan Dahl
1ae148909a
Abstract StreamWrap from TCPWrap
14 years ago