- Jan 30, 2013
-
-
isaacs authored
-
Ben Noordhuis authored
Make the casing consistent with the other os.* functions but keep os.tmpDir() around as an alias.
-
isaacs authored
Fixes #3305
-
Ben Noordhuis authored
Make lines ending \r\n emit one 'line' event, not two (where the second one is an empty string). This adds a new keypress name: 'return' (as in: 'carriage return'). Fixes #3305.
-
- Jan 29, 2013
-
-
isaacs authored
Always defer the _write callback. The optimization here was only relevant in some oddball edge cases that we don't actually care about. Our benchmarks confirm that just always deferring the Socket._write cb is perfectly fine to do, and in some cases, even slightly more performant.
-
Bert Belder authored
When a datagram socket hasn't been bound yet, node will defer `send()` operations until binding has completed. Before this patch a `listening` listener would be installed every time `send` was called. This triggered an EventEmitter leak warning when more than 10 packets were sent in a tight loop. Therefore switch to using a single `listening` listener, and use an array to enqueue outbound packets.
-
Bert Belder authored
-
Fedor Indutny authored
Doing this in net.Socket constructor has much more overhead, and error is actually may happen before the construction of socket object.
-
isaacs authored
The better to reduce the hidden classes
-
isaacs authored
-
isaacs authored
The refactor in b43e5441 to use stream.push() in Transform inadvertently caused it to immediately consume all the written data, regardless of whether or not the readable side was being consumed. Only pull data through the _transform() process when the readable side is being consumed. Fix #4667
- Jan 28, 2013
-
-
Fedor Indutny authored
TCPWrap::Initialize() and PipeWrap::Initialize() should be called before any data will be read from received socket. But, because of lazy initialization of these bindings, Initialize() method isn't called. Init bindings manually upon socket receiving. See #4669
-
Ben Noordhuis authored
The test times out when the upstream DNS resolver takes too long to respond. See #4672.
-
Ben Noordhuis authored
Fix the following OOM error in pummel/test-net-connect-memleak and pummel/test-tls-connect-memleak: FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory Commit v8/v8@91afd39 increases the size of the deoptimization table to the extent that a 64M float array pushes it over the brink. Switch to SMIs so it stays below the limit. pummel/test-net-connect-memleak is still failing albeit with a different error this time. Needs further investigation. === release test-net-connect-memleak === Path: pummel/test-net-connect-memleak -64 kB reclaimed assert.js:102 throw new assert.AssertionError({ ^ AssertionError: false == true at done [as _onTimeout] (/home/bnoordhuis/src/nodejs/master/ test/pummel/test-net-connect-memleak.js:48:3) at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) at process._makeCallback (node.js:306:20) -
Ben Noordhuis authored
If the end argument is omitted or not a number, make it default to the end of the buffer, not zero. Ideally, it should not matter what it defaults to because the JS shim in lib/buffer.js should handle that but there are still several places in node.js core that secrete SlowBuffers, hence Buffer::Copy() gets called without going through Buffer.prototype.copy() first.
-
Fedor Indutny authored
Revert commit 7f2a78bf and fix using empty symbol handle.
-
- Jan 27, 2013
-
-
Ben Noordhuis authored
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 99f0b022.
-
Fedor Indutny authored
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
-
- Jan 26, 2013
-
-
isaacs authored
-
Rod Vagg authored
mainly to allow native addons to export single functions on `exports` rather than being restricted to operating on an existing `exports` object. added link to addons repo in docs
-
isaacs authored
mainly to allow native addons to export single functions on rather than being restricted to operating on an existing object. Init functions now receive exports as the first argument, like before, but also the module object as the second argument, if they support it. Related to #4634 cc: @rvagg
-
Ben Noordhuis authored
* Omit ToObject() call. Buffer::Data() and Buffer::Length() know how to deal with Values. * Don't check if the argument is undefined because it realistically never is and undefined->integer coercion achieves the same thing.
-
- Jan 25, 2013
-
-
Trevor Norris authored
Changed types of errors thrown to be more indicative of what the error represents. Also removed a few unnecessary uses of the v8 fully quantified typename.
-
Trevor Norris authored
Argument checks were simplified by setting all undefined/NaN or out of bounds values equal to their defaults. Also copy() tests had a flaw that each buffer had the same bit pattern at the same offset. So even if the copy failed, the bit-by-bit comparison would have still been true. This was fixed by filling each buffer with a unique value before copy operations.
-
Trevor Norris authored
Fix issue where SlowBuffers couldn't be passed as target to Buffer copy(). Also included checks to see if Argument parameters are defined before assigning their values. This offered ~3x's performance gain.
-
Sugendran Ganess authored
-
Andy Burke authored
This adds a proxy for bytesWritten to the tls.CryptoStream. This change makes the connection object more similar between HTTP and HTTPS requests in an effort to avoid confusion. See issue #4650 for more background information.
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
* npm: Upgrade to v1.2.3 * V8: Upgrade to 3.15.11.10 * streams: Support objects other than Buffers (Jake Verbaten) * buffer: remove float write range checks (Trevor Norris) * http: close connection on 304/204 responses with chunked encoding (Ben Noordhuis) * build: fix build with dtrace support on FreeBSD (Fedor Indutny) * console: Support formatting options in trace() (isaacs) * domain: empty stack on all exceptions (Dave Olszewski) * unix, windows: make uv_*_bind() error codes consistent (Andrius Bentkus) * linux: add futimes() fallback (Ben Noordhuis)
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
Fedor Indutny authored
see #4636
-
- Jan 24, 2013
-
-
isaacs authored
-
isaacs authored
-
Raynos authored
We detect for non-string and non-buffer values in onread and turn the stream into an "objectMode" stream. If we are in "objectMode" mode then howMuchToRead will always return 1, state.length will always have 1 appended to it when there is a new item and fromList always takes the first value from the list. This means that for object streams, the n in read(n) is ignored and read() will always return a single value Fixed a bug with unpipe where the pipe would break because the flowing state was not reset to false. Fixed a bug with sync cb(null, null) in _read which would forget to end the readable stream
-
Ben Noordhuis authored
-