- Nov 09, 2013
-
-
Ben Noordhuis authored
Unbreak the build when linking against a shared version of OpenSSL that doesn't support NPN (Next Protocol Negotiation.) Fixes the following build error: ../src/node_crypto.cc:140: error: no member function 'AdvertiseNextProtoCallback' declared in 'node::crypto::SSLWrap<node::TLSCallbacks>' ../src/node_crypto.cc:147: error: no member function 'SelectNextProtoCallback' declared in 'node::crypto::SSLWrap<node::TLSCallbacks>'
-
- Nov 08, 2013
-
-
Fedor Indutny authored
Otherwise it might get stall (`Peek()` will return zero-length chunk) in following situation: 1. `Write(kBufferLength)` 2. `Read(kBufferLength)` 3. `Write(anything)` 4. `Peek()` => `len=0`
-
isaacs authored
Otherwise the string triggers an assertion error in node_http_parser.c, line 370: assert(Buffer::HasInstance(args[0]) == true); because the first argument is not a Buffer object.
-
- Nov 07, 2013
-
-
Ben Noordhuis authored
As discussed on the mailing list: the module will not go away but the API will continue to receive updates as the need arises. Link: https://groups.google.com/forum/#!topic/nodejs/uqyTcQfimAI Message-ID: <7384b30e-b64c-4086-b78f-b5acca9842a9@googlegroups.com>
-
fengmk2 authored
If the socket was destroyed, we need to remove it from the agent's `freeSockets` list, otherwise dead socket could be reused by new request.
-
- Nov 06, 2013
-
-
Jackson Tian authored
The bufferSize has been removed. Use highWaterMark instead of.
-
- Nov 05, 2013
-
-
Fedor Indutny authored
When socket, passed in `tls.connect()` `options` argument is not yet connected to the server, `_handle` gets assigned to a `net.Socket`, instead of `TLSSocket`. When socket is connecting to the remote server (i.e. not yet connected, but already past dns resolve phase), derive `_connecting` property from it, because otherwise `afterConnect()` will throw an assertion. fix #6443
-
Ben Noordhuis authored
Fixes a behavioral regression introduced in commit 691b9ebc.
-
Ben Noordhuis authored
Silly warning. One day I'll probably remove it altogether, see if I don't.
-
Nathan Rajlich authored
Fixes #6461.
-
- Nov 04, 2013
-
-
Ben Noordhuis authored
|i| and |j| arent't used when building without crypto support. Hat tip to Brian White. Rename |l| to |k| while we're here because it's quite hard to discern from |i| or |j| with some fonts.
-
- Oct 30, 2013
-
-
Erik Dubbelboer authored
Switch test fixtures to 1024 bit keys.
-
- Nov 02, 2013
-
-
Trevor Norris authored
-
- Nov 01, 2013
-
-
Ben Noordhuis authored
Test both "Content-Length: xxx" and "Transfer-Encoding: chunked" responses in the http/simple benchmark.
-
Trevor Norris authored
Documentation has been added on how to use the AsyncListener API.
-
Jacob Groundwater authored
-
Trevor Norris authored
The domain module has been switched over to use the domain module API as much as currently possible. There are still some hooks in the EventEmitter, but hopefully we can remove those in the future.
-
Trevor Norris authored
-
Trevor Norris authored
pbkdf2_req has been renamed to PBKDF2Request and converted to a class. It now uses AsyncWrap::MakeCallback. Also includes, using env()->ondone_string() instead of "ondone" and using malloc instead of new char[].
-
Trevor Norris authored
Since RandomBytesRequest makes a call to MakeCallback, needed it to be a class so AsyncWrap could handle any async listeners. Also added a simple test for an issue had during implementation where the memory was being released and returned.
-
Trevor Norris authored
Now it's possible to add/remove an async listener to an individual handle created by UDP, TCP, Pipe or Timer.
-
Trevor Norris authored
Making WeakObject inherit from AsyncWrap allows us to peak into almost all the MakeCallback calls in Node internals.
-
Trevor Norris authored
AsyncListener is a JS API that works in tandem with the AsyncWrap class to allow the user to be alerted to key events in the life cycle of an asynchronous event. The AsyncWrap class has its own MakeCallback implementation that core will be migrated to use, and uses state sharing techniques to allow quicker communication between JS and C++ whether the async event callbacks need to be called.
-
Fedor Indutny authored
-
- Oct 30, 2013
-
-
Ben Noordhuis authored
Profiling suggested that on Linux sometimes over 10% of CPU time was being spent inside the systemtap probe entry points in the binding layer, even when the process was not actively being traced with the `stap` tool. That's why this commit makes it possible to use the *_ENABLED() macros and bail out early when we're not being traced, reducing the overhead of unused probes to (almost) zero. Said macros were already being generated by `dtrace -h` but were not usable because they rely on external definitions. To remedy that, we now generate the accompanying object files with `dtrace -G`. This commit includes a change to libuv that has been landed upstream in commit joyent/libuv@3c172ea.
-
- Oct 31, 2013
-
-
Fedor Indutny authored
-
Fedor Indutny authored
When `tls.connect()` is called with `socket` option, it should try to reuse hostname previously passed to `net.connect()` and only after that fall back to `'localhost'`. fix #6409
-
Nick Simmons authored
Currently fs.watch does not have an option to specify if a directory should be recursively watched for events across all subdirectories. Several file watcher APIs support this. FSEvents on OS X > 10.5 is one example. libuv has added support for FSEvents, but fs.watch had no way to specify that a recursive watch was required. fs.watch now has an additional boolean option 'recursive'. When set to true, and when supported, fs.watch will return notifications for the entire directory tree hierarchy rooted at the specified path.
-
- Oct 30, 2013
-
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
* uv: Upgrade to v0.11.14 * v8: upgrade 3.21.18.3 * assert: indicate if exception message is generated (Glen Mailer) * buffer: add buf.toArrayBuffer() API (Trevor Norris) * cluster: fix premature 'disconnect' event (Ben Noordhuis) * crypto: add SPKAC support (Jason Gerfen) * debugger: count space for line numbers correctly (Alex Kocharin) * debugger: make busy loops SIGUSR1-interruptible (Ben Noordhuis) * debugger: repeat last command (Alex Kocharin) * debugger: show current line, fix for #6150 (Alex Kocharin) * dgram: send() can accept strings (Trevor Norris) * dns: rename domain to hostname (Ben Noordhuis) * dns: set hostname property on error object (Ben Noordhuis) * dtrace, mdb_v8: support more string, frame types (Dave Pacheco) * http: add statusMessage (Patrik Stutz) * http: expose supported methods (Ben Noordhuis) * http: provide backpressure for pipeline flood (isaacs) * process: Add exitCode property (isaacs) * tls: socket.renegotiate(options, callback) (Fedor Indutny) * util: format as Error if instanceof Error (Rod Vagg)
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Trevor Norris authored
Going back to the original names of Wrap/Unwrap now that most all the class members that duplicate the name and functionality have been removed.
-
Trevor Norris authored
Instead use the template functions in util.h.
-
Trevor Norris authored
Switch out to use UnwrapObject from util.h.
-
Trevor Norris authored
Remove the NODE_{WRAP,UNWRAP} macros and instead use template functions. -
Trevor Norris authored
There was no need to share state between C++ and JS for these two values. So they have been moved to their respective locations. This will help performance only a tiny bit, but it does help code complexity much more.
-
Scott Blomquist authored
-
Scott Blomquist authored
We need to keep ObjectWrap around for module authors (we think), but v8 3.21 broke node_object_wrap.h with respect to MSVC. Coincidentally, we no longer use ObjectWrap at all in core, and native modules might as well use their own entirely internal implementation if they need it.
-