- Jul 30, 2013
-
-
Ben Noordhuis authored
* Use ARRAY_SIZE() rather than scanning until we hit a NULL entry. * Fix `-fsigned-char -Wnarrowing` compiler warnings. Harmless but numerous and annoying. * Static-ify the modp_group and mod_groups arrays. * Const-ify the modp_groups array.
-
- Jul 31, 2013
-
-
Ben Noordhuis authored
No functional changes, just some code tightening. Clean up some style inconsistencies while we are here.
-
Ben Noordhuis authored
-
Ben Noordhuis authored
It imports the definition into every source file that includes string_bytes.h, as evidenced by the build suddenly breaking left and right because of missing Handle/Local/String/Value imports.
-
- Jul 30, 2013
-
-
Ben Noordhuis authored
-
Ben Noordhuis authored
Conflicts: AUTHORS ChangeLog deps/uv/ChangeLog deps/uv/src/version.c deps/uv/src/win/fs.c src/node.cc src/node_crypto.cc src/node_os.cc src/node_version.h
-
Ben Noordhuis authored
Use the StringBytes::IsValidString() function introduced in commit dce26cce to ensure that the input string meets the expectations of the other StringBytes functions before processing it further. Fixes the following assertion: Assertion failed: (str->Length() % 2 == 0 && "invalid hex string length"), function StorageSize, file ../../src/string_bytes.cc, line 301. Fixes #5725.
-
Ben Noordhuis authored
Performs a quick, non-exhaustive check on the input string to see if it's compatible with the specified string encoding. Curently it only checks that hex strings have a length that is a multiple of two.
-
Ben Noordhuis authored
Not harmful, just code cleanup. Fixes #5885.
-
- Jul 29, 2013
-
-
Ben Noordhuis authored
Passing the number of sent bytes to the callback is superfluous; datagram sockets operate in atomic mode: either the sendmsg() system call succeeds or it fails but it never does partial writes. Instead, report send errors to the callback. UDP error reporting is fairly haphazard on most platforms. You should not expect reliable delivery of anything besides EMSGSIZE and (possibly) ENETDOWN and ENETUNREACH. Fixes #2608.
-
Ben Noordhuis authored
V8 3.20.9 enforces that external pointers are aligned on a two-byte boundary. We cannot portably guarantee that for the source code strings that tools/js2c.py generates so simply stop using String::NewExternal() altogether (and by extension String::ExternalAsciiStringResource). Fixes the following run-time assert: FATAL ERROR: v8::String::NewExternal() Pointer is not aligned
-
- Jul 30, 2013
-
-
Ben Noordhuis authored
-
- Jul 29, 2013
-
-
Andrew Paprocki authored
On timeout, an Error object is thrown, not null.
-
Ben Noordhuis authored
No test, we can't rely on an alternate shell being available. Fixes #5935.
-
Fedor Indutny authored
fix #5925
-
Ben Noordhuis authored
-
- Jul 28, 2013
-
-
Ben Noordhuis authored
-
Ben Noordhuis authored
A failed bind() was already being correctly reported in round-robin mode. This commit fixes bind() error reporting in shared handle mode. Fixes #5774.
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
- Jul 27, 2013
-
-
Andrew Chilton authored
-
Rod Vagg authored
-
Maciej Małecki authored
-
- Jul 26, 2013
-
-
Dav Glass authored
-
isaacs authored
This prevents the following sort of thing from being confusing: ```javascript stream.on('data', function() { console.error('got data'); }); stream.pause(); // stop reading // turns out no data is available stream.push(null); // Hand the stream to someone else, who does stuff... setTimeout(function() { // too late! 'end' is already emitted! stream.on('end', function() { console.error('got end'); }); }); ``` With this change, the `end` event is not emitted until you call `read()` *past* the EOF null. So, a paused stream will not swallow the `end` event and emit it before you `resume()` the stream.
-
- Jul 25, 2013
-
-
Fedor Indutny authored
-
Ben Noordhuis authored
The title shouldn't be too long; libuv's uv_set_process_title() out of security considerations no longer overwrites envp, only argv, so the maximum title length is possibly quite short. Fixes #5908.
-
- Jul 26, 2013
-
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
* src: fix process.getuid() return value (Ben Noordhuis)
-
Ben Noordhuis authored
And process.getgid() too. Commit ed806385 changed fs.chown() and fs.fchown() to only accept unsigned integers. Make process.getuid() and process.getgid() follow suit. This commit should unbreak npm on OS X - it's hitting the new 'uid must be an unsigned int' check when installing as e.g. user 'nobody' (which has an UID of -2 in /etc/passwd or 4294967294 when cast to an uid_t.) Fixes #5904.
-
Ben Noordhuis authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
* uv: Upgrade to v0.10.13 * npm: Upgrade to v1.3.5 * os: Don't report negative times in cpu info (Ben Noordhuis) * fs: Handle large UID and GID (Ben Noordhuis) * url: Fix edge-case when protocol is non-lowercase (Shuan Wang) * doc: Streams API Doc Rewrite (isaacs) * node: call MakeDomainCallback in all domain cases (Trevor Norris) * crypto: fix memory leak in LoadPKCS12 (Fedor Indutny)
-
Timothy J Fontaine authored
-
- Jul 25, 2013
-
-
Fedor Indutny authored
fix #5871
-
Fedor Indutny authored
If `obj` given to `cluster._getServer` has `_setServerData` or `_getServerData` methods, the data will be synchronized across workers and stored in master.
-