- Sep 10, 2014
-
-
Trevor Norris authored
V8 3.26.31 has received 14 patches since the upgrade to 3.26.33. Since 3.26.33 is technically a tag on the 3.27 branch, reverting back to 3.26.31 would remove now default functionality like WeakMaps. Because of that the patches have simply been cherry-picked and squashed. Here is a summary of all patches: * Fix index register assignment in LoadFieldByIndex for arm, arm64, and mips. * Fix invalid attributes when generalizing because of incompatible map change. * Skip write barriers when updating the weak hash table. * MIPS: Avoid HeapObject check in HStoreNamedField. * Do GC if CodeRange fails to allocate a block. * Array.concat: properly go to dictionary mode when required. * Keep CodeRange::current_allocation_block_index_ in range. * Grow heap slower if GC freed many global handles. * Do not eliminate bounds checks for "<const> - x". * Add missing map check to optimized f.apply(...). * In GrowMode, force the value to the right representation to avoid deopts between storing the length and storing the value. * Reduce max executable size limit. * Fix invalid condition in check elimination effects. * Fix off-by-one error in Array.concat slow mode check. For more information see: https://github.com/v8/v8/commits/3.26 Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
Trevor Livingston authored
Allow overriding `checkServerIdentity` function, when connecting to a TLS server. Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
- Sep 06, 2014
-
-
Ben Noordhuis authored
There is only one call site that uses it and that can do the checks itself. Removes ~15 lines of code. Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Unexport the http.parsers freelist. It was originally exported by Ryan in commit 0003c701 but the commit log doesn't mention why and it's never been documented. It's unclear if there are any users. The lifecycle of parser objects changed recently and it seems better to not let people shoot themselves in the foot so easily. If it turns out there are actually users, we can always re-export it again - probably under a slightly different name, to force people to update their code to the new way of things. Reviewed-by:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Make it a little harder to slip in use-after-free bugs by nulling out references to the parser object after handing it off to freeParser(). Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
It's safe to call BaseObject::object() from your destructor _unless_ the handle is weak; then it's the weak callback that is calling your destructor and the object will have been released by the time the destructor runs. Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Weak handles put strain on the garbage collector and the parser handle doesn't need to be weak in the first place. This change should improve GC times on busy servers a little. Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Counterpart to Wrap(), clears the previously assigned internal field. Will be used in an upcoming commit. Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Fix a resource leak where an intermediate Local<Context> handle in Environment::GetCurrent() got leaked into whatever HandleScope was further up the stack. Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Majid Arif Siddiqui authored
Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
- Sep 05, 2014
-
-
cjihrig authored
Test that listening on exclusive ports with the cluster module works correctly. Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
- Sep 04, 2014
-
-
cjihrig authored
Allow cluster workers to listen on exclusive ports for TCP and UDP, instead of forcing all calls to go through the cluster master. Fixes: #3856 Reviewed-by:
Trevor Norris <trev.norris@gmail.com> Reviewed-by:
Fedor Indutny <fedor@indutny.com>
-
Trevor Norris authored
Use 'use strict' when there are named arguments and the arguments object is passed to apply(). Also pass named arguments to call() when the named argument is modified by the function. Suggested in https://github.com/joyent/node/pull/8302#issuecomment-54331801 Confirmed in https://github.com/joyent/node/pull/8302#issuecomment-54364818 Signed-off-by:
Trevor Norris <trev.norris@gmail.com>
-
- Sep 03, 2014
-
-
Fedor Indutny authored
Required to serve website with both ECDSA/RSA certificates.
-
Fedor Indutny authored
Do not free TLSCallbacks from StreamWrap. TLSCallbacks is bound to a V8 object and should be collected by V8's GC.
-
Fedor Indutny authored
Use `BIO_new_mem_buf` where possible to reduce memory usage and initialization costs.
-
Jackson Tian authored
Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Trevor Norris authored
node::StringBytes::Write() has appropriate support to write strings with 'binary' encoding. So expose that API through StreamWrap and allow inheriting classes to use it. Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
Trevor Norris authored
The REPL global object lazy loads modules by placing getters for each. This causes MakeDomainCallback() to be run if a native module is loaded from the REPL, but if the domain module hasn't been loaded then there are no enter/exit callbacks to be called. Causing an assert() to fail. Fix the issue by conditionally running the callback instead of asserting it is available. Also add "addon" test to verify the fix. Fixes: #8231 Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
Jesús Leganés Combarro "piranna authored
Allow to create an executable with no external dynamic libraries, also the ones from the system. This is somewhat dependent of the used C lib, for example glibc has some internal dynamic libraries loaded by itself, but for other ones like eglibc or dietlib, this would produce a true static linked executable. This can be of interest for embebers or resource constraints platforms, but the main reason for this is to allow to use a Javascript file as Linux kernel 'init' on NodeOS. Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
Julien Gilli authored
Currently, cluster workers can be removed from the workers list in three different places: - In the exit event handler for the worker process. - In the disconnect event handler of the worker process. - In the disconnect event handler of the cluster master. However, handles for a given worker are cleaned up only in one of these places: in the cluster master's disconnect event handler. Because these events happen asynchronously, it is possible that the workers list is empty before we even clean up one handle. This makes the assert that makes sure that no handle is left when the workers list is empty fail. This commit removes the worker from the cluster.workers list only when the worker is dead _and_ disconnected, at which point we're sure that its associated handles are cleaned up. Fixes #8191 and #8192. Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
- Sep 02, 2014
-
-
Brian White authored
Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
Brian White authored
Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
Jackson Tian authored
Initialize fields to avoid Hidden Class creation in runtime. Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
- Sep 01, 2014
-
-
Isaac Burns authored
Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
- Aug 29, 2014
-
-
Shigeki Ohtsu authored
`!EDH` is also removed from the list in the discussion of #8272 Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
Shigeki Ohtsu authored
In case of an invalid DH parameter file, it is sliently discarded. To use auto DH parameter in a server and DHE key length check in a client, we need to wait for the next release of OpenSSL-1.0.2. Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
Fedor Indutny authored
-
- Aug 27, 2014
-
-
Jackson Tian authored
Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
Fedor Indutny authored
Reviewed-By:Trevor Norris <trevnorris@gmail.com>
-
- Aug 24, 2014
-
-
Fedor Indutny authored
Do not create `SSL` instance twice, `SSL_new` is called from `SSLBase` constructor anyway. Reviewed-By:Fedor Indutny <fedor@indutny.com>
-
- Aug 22, 2014
-
-
Jackson Tian authored
Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
- Aug 21, 2014
-
-
Chris Dickinson authored
net Sockets were calling read(0) to start reading, without checking to see if they were paused first. This would result in paused Socket objects keeping the event loop alive. Fixes #8200 Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
cjihrig authored
Fix assertion failure from poor argument parsing logic introduced in 6ea5d167. Add tests to make sure arguments are properly parsed. Fixes: 6ea5d167 "dns: always set variable family in lookup()" Reviewed-by:
Trevor Norris <trev.norris@gmail.com>
-
- Aug 20, 2014
-
-
Ben Noordhuis authored
Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
Yazhong Liu authored
Reviewed-by:Trevor Norris <trev.norris@gmail.com>
-
- Aug 19, 2014
-
-
Alex Kocharin authored
Reported-by:
Jackson Tian <shyvo1987@gmail.com> Reviewed-by:
Trevor Norris <trev.norris@gmail.com>
-
- Aug 17, 2014
-
-
Fedor Indutny authored
-
- Aug 14, 2014
-
-
Alexis Campailla authored
Fix a few issues in test/internet/test-dns.js: - 'hint' should be 'hints' - reverse name lookup is not guaranteed to return 'localhost' - V4MAPPED hint requires IPV6 address family Signed-off-by:Timothy J Fontaine <tjfontaine@gmail.com>
-
Julien Gilli authored
Tests in test-net-remote-address-port.js assume that client and server sockets always use IPv4. However, depending on the OS and the network interfaces setup, this is not true. This change makes the test consider that both IPv4 or IPv6 sockets are valid Fixes #8096. Signed-off-by:Timothy J Fontaine <tjfontaine@gmail.com>
-