- Mar 11, 2015
-
-
skenqbx authored
PR-URL: https://github.com/iojs/io.js/pull/1110 Reviewed-By:
Fedor Indutny <fedor@indutny.com> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
- Mar 10, 2015
-
-
Ben Noordhuis authored
PR-URL: https://github.com/iojs/io.js/pull/1118 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Ben Noordhuis authored
net.connect() accepts `{ port: "1234" }` (i.e. a string) as of commit 9d2b89d0 ("net: allow port 0 in connect()") but net.Server#listen() did not, creating a minor inconsistency. This commit rectifies that. Fixes: https://github.com/iojs/io.js/issues/1111 PR-URL: https://github.com/iojs/io.js/pull/1116 Reviewed-By:Colin Ihrig <cjihrig@gmail.com>
-
skenqbx authored
PR-URL: https://github.com/iojs/io.js/pull/1107 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Ryuichi Okumura authored
PR-URL: https://github.com/iojs/io.js/pull/1115 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Fedor Indutny authored
Set proxied methods wrappers in `TLSWrap` prototype instead of doing it on every socket allocation. Should speed up things a bit and will certainly make heapsnapshot less verbose. PR-URL: https://github.com/iojs/io.js/pull/1108 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Trevor Norris authored
The .parent property of the allocated buffer should remain undefined in the case that it's not a slice. Also included test to verify this. PR-URL: https://github.com/iojs/io.js/pull/1109 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
Rod Vagg authored
-
Rod Vagg authored
Notable changes: * tls: The reported TLS memory leak has been at least partially resolved via various commits in this release. Current testing indicated that there may still be some leak problems. Progress being tracked at: https://github.com/iojs/io.js/issues/1075 * http: Fixed an error reported at https://github.com/joyent/node/issues/9348 and https://github.com/npm/npm/issues/7349 Pending data was not being fully read upon an 'error' event leading to an assertion failure on socket.destroy(). (Fedor Indutny) https://github.com/iojs/io.js/pull/1103
-
Rudi Cilibrasi authored
PR-URL: https://github.com/iojs/io.js/pull/228 Reviewed-By:
Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Mar 09, 2015
-
-
Fedor Indutny authored
Read all pending data out of the socket on `error` event and ensure that no `data`/`end` handlers will be invoked on `socket.destroy()`. Otherwise following assertion happens: AssertionError: null == true at TLSSocket.socketOnData (_http_client.js:308:3) at TLSSocket.emit (events.js:107:17) at TLSSocket.Readable.read (_stream_readable.js:373:10) at TLSSocket.socketCloseListener (_http_client.js:229:10) at TLSSocket.emit (events.js:129:20) at TCP.close (net.js:476:12) Fix: https://github.com/joyent/node/issues/9348 PR-URL: https://github.com/iojs/io.js/pull/1103 Reviewed-By:Rod Vagg <rod@vagg.org> Reviewed-By:
Nicu Micleușanu <micnic90@gmail.com>
-
Fedor Indutny authored
Adjust V8's external memory size when allocating buffers for TLS data to ensure that V8 has enough information to trigger the GC at right time. PR-URL: https://github.com/iojs/io.js/pull/1085 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Yazhong Liu authored
PR-URL: https://github.com/iojs/io.js/pull/1097 Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com>
-
Jeremiah Senkpiel authored
Fixes: https://github.com/iojs/io.js/issues/1098 PR-URL: https://github.com/iojs/io.js/pull/1102 Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com>
-
Alex Kocharin authored
PR-URL: https://github.com/iojs/io.js/pull/1095 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Nicu Micleușanu <micnic90@gmail.com>
-
- Mar 08, 2015
-
-
Fedor Indutny authored
Encapsulate allocation/disposal of `WriteWrap` instances into the `WriteWrap` class itself. PR-URL: https://github.com/iojs/io.js/pull/1090 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Fedor Indutny authored
Kill WriteWrap instances that are allocated in `tls_wrap.cc` internally. Fix: https://github.com/iojs/io.js/issues/1075 PR-URL: https://github.com/iojs/io.js/pull/1090 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Brendan Ashworth authored
See commit `4877ec0`, where it now warns on a clang++ version older than 3.4. PR-URL: https://github.com/iojs/io.js/pull/1094 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
The SYNC_CALL macro returns on error, bypassing the delete[] call. Mea culpa, it looks like I introduced this memory leak back in 2013, in commit d2b80b8a ("src: clean up FSReqWrap"). PR-URL: https://github.com/iojs/io.js/pull/1092 Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
Ben Noordhuis authored
Fix a bad delete of a pointer that was allocated with placement new. Casting the pointer was not the right solution because there was at least one non-placement new constructor call. This commit rewrites FSReqWrap to be more explicit about ownership of the auxiliary data and removes a number of egregious const_casts. The ASYNC_DEST_CALL macro also gets significantly slimmed down. PR-URL: https://github.com/iojs/io.js/pull/1092 Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
Evan Lucas authored
PR-URL: https://github.com/iojs/io.js/pull/1093 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
- Mar 07, 2015
-
-
Fedor Indutny authored
`ASN1_item_d2i`'s return value must be freed by the owner. Fix: https://github.com/iojs/io.js/issues/1075 PR-URL: https://github.com/iojs/io.js/pull/1087 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
Add a Context::Scope that was overlooked in commit 583a868b ("stream_wrap: add HandleScope's in uv callbacks"). PR-URL: https://github.com/iojs/io.js/pull/1084 Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
Rod Vagg authored
-
Rod Vagg authored
Notable changes: * buffer: New `Buffer#indexOf()` method, modelled off `Array#indexOf()`. Accepts a String, Buffer or a Number. Strings are interpreted as UTF8. (Trevor Norris) https://github.com/iojs/io.js/pull/561 * fs: `options` object properties in `'fs'` methods no longer perform a `hasOwnProperty()` check, thereby allowing options objects to have prototype properties that apply. (Jonathan Ong) https://github.com/iojs/io.js/pull/635 * tls: A likely TLS memory leak was reported by PayPal. Some of the recent changes in stream_wrap appear to be to blame. The initial fix is in https://github.com/iojs/io.js/pull/1078, you can track the progress toward closing the leak at https://github.com/iojs/io.js/issues/1075 (Fedor Indutny). * npm: Upgrade npm to 2.7.0. See npm CHANGELOG.md: https://github.com/npm/npm/blob/master/CHANGELOG.md#v270-2015-02-26 for details including why this is a semver-minor when it could have been semver-major. * TC: Colin Ihrig (@cjihrig) resigned from the TC due to his desire to do more code and fewer meetings.
-
cjihrig authored
Every npm version bump requires a few patches to be floated on node-gyp for io.js compatibility. These patches are found in 03d19927, 5de334c2, and da730c76. This commit squashes them into a single commit. PR-URL: https://github.com/iojs/io.js/pull/990 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Forrest L Norvell authored
PR-URL: https://github.com/iojs/io.js/pull/1080 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Fedor Indutny authored
Hold non-persistent reference in JS, rather than in C++ to avoid cycles. PR-URL: https://github.com/iojs/io.js/pull/1078 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Fedor Indutny authored
Don't forget to call `MakeWeak` to ensure that instance objects are garbage collectable. PR-URL: https://github.com/iojs/io.js/pull/1078 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Fedor Indutny authored
Ensure that no handles will leak into global HandleScope by adding HandleScope's in all JS-calling libuv callbacks in `stream_wrap.cc`. Fix: https://github.com/iojs/io.js/issues/1075 PR-URL: https://github.com/iojs/io.js/pull/1078 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Mar 06, 2015
-
-
Brian White authored
PR-URL: https://github.com/iojs/io.js/pull/1076 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Johan Bergström authored
After upgrading to a newer v8 mdb is pretty much broken - even if using the latest updates from nodejs. If nodejs decides to update their v8 we can give it another go, but for now it's better to remove it than have it in our tree unsupported. PR-URL: https://github.com/iojs/io.js/pull/1023 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Christian Tellnes authored
This changes the behavior for http to send send a Content-Length header instead of using chunked encoding when we know the size of the body when sending the headers. Fixes: https://github.com/iojs/io.js/issues/1044 PR-URL: https://github.com/iojs/io.js/pull/1062 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Brian White <mscdex@mscdex.net>
-
Ben Noordhuis authored
StringBytes::Write() did a plain memcpy() when is_extern is true but that's wrong when the source is a two-byte string and the destination a one-byte or UTF-8 string. The impact is limited to strings > 1,031,913 bytes because those are normally the only strings that are externalized, although the use of the 'externalize strings' extension (--expose_externalize_string) can also trigger it. This commit also cleans up the bytes versus characters confusion in StringBytes::Write() because that was closely intertwined with the UCS-2 encoding regression. One wasn't fixable without the other. Fixes: https://github.com/iojs/io.js/issues/1024 Fixes: https://github.com/joyent/node/issues/8683 PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Make StringBytes::GetExternalParts() return the byte length for two-byte strings, not the character length. Its callers operate on bytes, not characters. This also fixes StringBytes::Size() reporting only half of the actual number of bytes for external two-byte strings. PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Make the algorithm that creates the big input strings a little easier to comprehend. No functional changes, the string lengths are unchanged. PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Rename `val_` to `string`. The underscore suffix is normally reserved for data members, not locals, and it's not a great name in the first place. PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
* Remove kStorageSize constant. * Remove superfluous local variable and reinterpret_cast. * Reorder data members so the length field and data pointer (if not the data itself) fit in a single cache line. PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Introduced in joyent/node v0.10 as a backwards compatibility measure. It's an ugly hack and allowing invalid UTF-8 is not a good idea in the first place, remove it. PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Large external two-byte strings reported their character length instead of their byte length, throwing off the garbage collector heuristic by a factor of two. PR-URL: https://github.com/iojs/io.js/pull/1042 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-