- 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
-
Ben Noordhuis authored
This is similar to commit 2cbf4586 but this time for 204 No Content instead of 304 Not Modified responses. When the user sends a 204 response with a Transfer-Encoding: chunked header, suppress sending the zero chunk and force the connection to close.
-
Scott Blomquist authored
-
- Jan 23, 2013
-
-
Trevor Norris authored
Removed range checks when writing float values, and removed a few includes and defines. Also updated api docs to reflect that invalid 32 bit float is an unspecified behavior.
-
Ben Noordhuis authored
Force the connection to close when the response is a 304 Not Modified and the user has set a "Transfer-Encoding: chunked" header. RFC 2616 mandates that 304 responses MUST NOT have a body but node.js used to send out a zero chunk anyway to accommodate clients that don't have special handling for 304 responses. It was pointed out that this might confuse reverse proxies to the point of creating security liabilities, so suppress the zero chunk and force the connection to close.
-
Bert Belder authored
-
- Jan 22, 2013
-
-
Ben Noordhuis authored
-
Tim authored
-
- Jan 21, 2013
-
-
Fedor Indutny authored
Fix undefined reference to `gelf_getsym`... and other undefined symbols from libelf, by adding `-lelf` to linker options on FreeBSD.
-
Fedor Indutny authored
Every constant is certainly 4 bytes now, but freebsd's objdump utility prints out odd byte sequences (5-bytes, 6-bytes and even 9-bytes long) for v8's data section. We can safely ignore all upper bytes, because all constants that we're using are just `int`s. Since on all supported platforms `int` is 32bit long (and anyway v8's constants are 32bit too), we ignore all higher bits if they were read.
-
- Jan 20, 2013
-
-
Ben Noordhuis authored
Fix an off-by-one error introduced in 9fe3734f that caused a regression in the default endianness used for writes in DataView::setGeneric(). Fixes #4626.
-
Fedor Indutny authored
Since net.Server's `connection` property is deprecated now, we don't need API to track socket's state to keep `connection`s value up-to-date.
-
- Jan 19, 2013
-
-
isaacs authored
Fix #4589
-
Dave Olszewski authored
Due to the nature of asyncronous programming, it's impossible to know what will run on the next tick. Because of this, it's not correct to maintain domain stack state between ticks Since the _fatalException handler is only invoked after the stack is unwound, once it exits the tick will end. The only reasonable thing to do in that case is to exit *all* domains.
-
Yi EungJun authored
The first example in cluster.markdown requires NODE_DEBUG env to show debug message. And also fix the message because it was a little bit different with the actual message.
-
isaacs authored
Conflicts: AUTHORS ChangeLog src/node_version.h test/simple/test-buffer.js
-
isaacs authored
-
isaacs authored
-