summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
AgeCommit message (Collapse)Author
2013-11-27stream_wrap: don't call Number::New()Ben Noordhuis
Replace call to Number::New() with a call to Integer::NewFromUnsigned(). Profiling a Real World(TM) application with perf(1) suggests that the conversion of its argument from integer to double is disproportionally costly: over 60% of CPU cycles accountable to WriteStringImpl() are attributable to the conversion. After changing it to Integer::NewFromUnsigned(), WriteStringImpl() has dropped from the 'most costly functions' top ten altogether.
2013-05-14src: Use StringBytes in StreamWrapisaacs
2013-03-13core: Unwrap without aborting in handle fd getterisaacs
2013-02-25src, test: downgrade to v8 3.14 apiBen Noordhuis
2013-02-20stream_wrap: remove superfluous buffer len checkBen Noordhuis
It's a buffer so it's never bigger than Buffer::kMaxLength bytes, which in turn is always < INT_MAX.
2013-02-13stream_wrap, udp_wrap: add read-only fd propertyBen Noordhuis
Expose the file descriptor as a read-only property on the internal handle objects. Intended for debugging purposes, not part of the API proper. The property is always null on Windows. Fixes #4754.
2013-01-28cluster: support datagram socketsBert Belder
2013-01-27stream_wrap: reference handle before uv_write2Fedor Indutny
Revert commit 7f2a78bf4d494806ccabcccdeb8579dcc4405a8d and fix using empty symbol handle.
2013-01-27Revert "stream_wrap: reference handle before uv_write2"Ben Noordhuis
It's segfaulting in release mode and asserting in debug mode: # # Fatal error in ../../deps/v8/src/api.h, line 297 # CHECK(allow_empty_handle || that != __null) failed # This reverts commit 99f0b022d528cc350f87150b5ecdf5c903aaeeb1.
2013-01-26stream_wrap: reference handle before uv_write2Fedor Indutny
Before sending handle to another process using uv_write2(), it should be referenced to prevent it from being GCed before AfterWrite() will be called. see #4599
2013-01-07src: pass node_isolate to Null()Ben Noordhuis
2013-01-07src: pass node_isolate to Local<>::NewBen Noordhuis
2013-01-07src: pass node_isolate to Integer::NewBen Noordhuis
2013-01-02bindings: update to new v8 apisFedor Indutny
GetPointerFromInternalField() is deprecated now, we should use GetAlignedPointerFromInternalField().
2012-11-21windows: add tracing with performance countersScott Blomquist
Patch by Henry Rawas and Scott Blomquist.
2012-06-16Revert "Check if a stream has a valid fd before read_start"Bert Belder
uv_stream_t.fd is a private field which exists only on unix. This reverts commit 8d5c1201f24a6102d047bd7ec70f30da70a5ea64.
2012-06-16Check if a stream has a valid fd before read_startKarl Skomski
Closes #3118
2012-06-05udp_wrap, stream_wrap: lazy init slab allocatorBen Noordhuis
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.
2012-05-21Make UNWRAP macro generic.Oleg Efimov
2012-05-09stream_wrap: fix compilation errorsBen Noordhuis
2012-05-09stream_wrap.cc: fix typoBert Belder
2012-05-09StreamWrap::WriteBuffer: remove superfluous argumentsBert Belder
2012-05-09Optimize writing strings with Socket.writeBert Belder
2012-04-17MakeCallback: Consistent symbol usageisaacs
2012-04-11Slab allocator: don't attempt to shrink a non-bufferBert Belder
2012-03-30stream_wrap: use new slab allocatorBen Noordhuis
2012-03-30stream_wrap: fix signedness compiler warningsBen Noordhuis
2012-03-10core: use proper #include directivesBen Noordhuis
2012-03-09cluster: support passing of named pipesBen Noordhuis
Fixes triggered assertion: Assertion failed: (0 && "bad address family"), function GetPeerName, file ../src/tcp_wrap.cc, line 237. Fixes #2870.
2012-02-06Revert support for isolates.Ben Noordhuis
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.
2012-01-12Merge branch 'v0.6'Fedor Indutny
Conflicts: src/handle_wrap.cc src/node_zlib.cc src/process_wrap.cc
2012-01-10Fix #2473Ryan Dahl
Tested in production. See also http://code.google.com/p/v8/issues/detail?id=1889
2011-12-29Add node::Loop() and don't inc node_isolate.h in *.ccRyan Dahl
node::Loop() replaces the NODE_LOOP macro. This avoids hitting v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
2011-12-29Remove node_isolate.h from node.hRyan Dahl
2011-12-29isolates: isolate-ify the main loopBen Noordhuis
2011-12-07Begin moving static vars into struct for isolates.Ryan Dahl
Only node.cc, stream_wrap.cc, and tcp_wrap.cc have been done. The rest still need work.
2011-11-02Add missing copyright headersRyan Dahl
2011-10-19Display sys_errno when UV_UNKNOWN is returnedRyan Dahl
2011-10-07Add test-child-process-fork2 and fixes to make it workRyan Dahl
2011-10-07Support sending handles to other processesRyan Dahl
Needs test.
2011-10-06uv_write2 uv_read2_start bindingRyan Dahl
2011-08-31Upgrade libuv to ea4271fRyan Dahl
Required adding uv_default_loop() in many places.
2011-08-24stream_wrap: update after libuv API changeBen Noordhuis
2011-07-27stdio binding + javascript to enable process.stdin.listen()Igor Zinkovsky
2011-07-19net_uv: properly initialize writeQueueSizeRyan Dahl
Fixes simple/test-tcp-wrap-listen.js
2011-07-18Abstract out HandleWrap classRyan Dahl
2011-07-18Abstract StreamWrap from TCPWrapRyan Dahl