summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2013.06.13, Version 0.10.11 (Stable)v0.10.11v0.10.11-releaseisaacs2013-06-133-2/+21
| | | | | | | | | | | | | | | | * uv: upgrade to 0.10.11 * npm: Upgrade to 1.2.30 * openssl: add missing configuration pieces for MIPS (Andrei Sedoi) * Revert "http: remove bodyHead from 'upgrade' events" (isaacs) * v8: fix pointer arithmetic undefined behavior (Trevor Norris) * crypto: fix utf8/utf-8 encoding check (Ben Noordhuis) * net: Fix busy loop on POLLERR|POLLHUP on older linux kernels (Ben Noordhuis, isaacs)
* test: minor typo fixesVeres Lajos2013-06-135-14/+14
|
* openssl: add missing configuration pieces for MIPSAndrei Sedoi2013-06-132-3/+5
|
* Revert "http: remove bodyHead from 'upgrade' events"isaacs2013-06-126-28/+18
| | | | | | | | | | | This reverts commit a40133d10cdb911b27fe8d46d67a835b0103bbf1. Unfortunately, this breaks socket.io. Even though it's not strictly an API change, it is too subtle and in too brittle an area of node, to be done in a stable branch. Conflicts: doc/api/http.markdown
* uv: upgrade to 0.10.11Ben Noordhuis2013-06-124-30/+38
|
* npm: Upgrade to 1.2.30isaacs2013-06-12117-193/+460
|
* v8: fix pointer arithmetic undefined behaviorTrevor Norris2013-06-111-1/+2
| | | | | | | | Clang branch release_33 would optimize out a != NULL check because of some undefined behavior. This is a floating patch as a backport of that fix. Committed: http://code.google.com/p/v8/source/detail?r=13570
* crypto: fix utf8/utf-8 encoding checkBen Noordhuis2013-06-112-0/+16
| | | | | | | | Normalize the encoding in getEncoding() before using it. Fixes a "AssertionError: Cannot change encoding" exception when the caller mixes "utf8" and "utf-8". Fixes #5655.
* build: add pkgsrc ruleTimothy J Fontaine2013-06-063-1/+28
|
* npm: Upgrade to 1.2.27isaacs2013-06-06230-14670/+126
|
* net: Destroy when not readable and not writableisaacs2013-06-052-2/+141
| | | | | | | | | | | | | | | | | | | | This is only relevant for CentOS 6.3 using kernel version 2.6.32. On other linuxes and darwin, the `read` call gets an ECONNRESET in that case. On sunos, the `write` call fails with EPIPE. However, old CentOS will occasionally send an EOF instead of a ECONNRESET or EPIPE when the client has been destroyed abruptly. Make sure we don't keep trying to write or read more in that case. Fixes #5504 However, there is still the question of what libuv should do when it gets an EOF. Apparently in this case, it will continue trying to read, which is almost certainly the wrong thing to do. That should be fixed in libuv, even though this works around the issue.
* Now working on v0.10.11isaacs2013-06-041-2/+2
|
* blog: Release v0.10.10isaacs2013-06-041-0/+63
|
* Merge branch 'v0.10.10-release' into v0.10isaacs2013-06-042-2/+13
|\
| * 2013.06.04, Version 0.10.10 (Stable)v0.10.10v0.10.10-releaseisaacs2013-06-042-2/+13
|/ | | | | | | | | | * uv: Upgrade to 0.10.10 * npm: Upgrade to 1.2.25 * url: Properly parse certain oddly formed urls (isaacs) * stream: unshift('') is a noop (isaacs)
* uv: Upgrade to 0.10.10isaacs2013-06-0410-65/+113
|
* url: remove unused global variableBen Noordhuis2013-06-041-12/+0
|
* npm: Upgrade to 1.2.25isaacs2013-06-04203-207/+332
|
* doc: ChangeLog update for v0.8.24isaacs2013-06-041-0/+11
|
* blog: 0.8 is maintenace, not stableisaacs2013-06-041-2/+2
|
* blog: Release v0.8.24isaacs2013-06-041-0/+63
|
* blog: Release v0.10.9isaacs2013-06-041-0/+67
|
* url: Set href to null by defaultisaacs2013-06-031-0/+1
|
* url: Properly parse certain oddly formed urlsisaacs2013-06-032-33/+86
| | | | | | | | | | | | | | | | | | | | | | | | | In cases where there are multiple @-chars in a url, Node currently parses the hostname and auth sections differently than web browsers. This part of the bug is serious, and should be landed in v0.10, and also ported to v0.8, and releases made as soon as possible. The less serious issue is that there are many other sorts of malformed urls which Node either accepts when it should reject, or interprets differently than web browsers. For example, `http://a.com*foo` is interpreted by Node like `http://a.com/*foo` when web browsers treat this as `http://a.com%3Bfoo/`. In general, *only* the `hostEndingChars` should be the characters that delimit the host portion of the URL. Most of the current `nonHostChars` that appear in the hostname should be escaped, but some of them (such as `;` and `%` when it does not introduce a hex pair) should raise an error. We need to have a broader discussion about whether it's best to throw in these cases, and potentially break extant programs, or return an object that has every field set to `null` so that any attempt to read the hostname/auth/etc. will appear to be empty.
* stream: unshift('') is a noopisaacs2013-06-032-1/+82
| | | | | | | | | | | | | | | | | | In some cases, the http CONNECT/Upgrade API is unshifting an empty bodyHead buffer onto the socket. Normally, stream.unshift(chunk) does not set state.reading=false. However, this check was not being done for the case when the chunk was empty (either `''` or `Buffer(0)`), and as a result, it was causing the socket to think that a read had completed, and to stop providing data. This bug is not limited to http or web sockets, but rather would affect any parser that unshifts data back onto the source stream without being very careful to never unshift an empty chunk. Since the intent of unshift is to *not* change the state.reading property, this is a bug. Fixes #5557 Fixes LearnBoost/socket.io#1242
* Now working on v0.10.10isaacs2013-05-301-2/+2
|
* Merge branch 'v0.10.9-release' into v0.10isaacs2013-05-303-2/+20
|\
| * 2013.05.30, Version 0.10.9 (Stable)v0.10.9v0.10.9-releaseisaacs2013-05-303-2/+20
|/ | | | | | | | | | | | | | * npm: Upgrade to 1.2.24 * uv: Upgrade to v0.10.9 * repl: fix JSON.parse error check (Brian White) * tls: proper .destroySoon (Fedor Indutny) * tls: invoke write cb only after opposite read end (Fedor Indutny) * tls: ignore .shutdown() syscall error (Fedor Indutny)
* npm: Upgrade to 1.2.24isaacs2013-05-30280-895/+20530
|
* doc: remove `bufferSize` optionKiyoshi Nomo2013-05-301-1/+0
| | | | `bufferSize` option has been removed in b0f6789.
* repl: fix JSON.parse error checkBrian White2013-05-302-2/+4
| | | | | | | | | Before this, entering something like: > JSON.parse('066'); resulted in the "..." prompt instead of displaying the expected "SyntaxError: Unexpected number"
* tls: proper .destroySoonFedor Indutny2013-05-301-22/+33
| | | | | | | | 1. Emit `sslOutEnd` only when `_internallyPendingBytes() === 0`. 2. Read before checking `._halfRead`, otherwise we'll see only previous value, and will invoke `._write` callback improperly. 3. Wait for both `end` and `finish` events in `.destroySoon`. 4. Unpipe encrypted stream from socket to prevent write after destroy.
* doc: sending dgram handles only works on unixBen Noordhuis2013-05-291-1/+1
|
* https: Add `secureProtocol` docsDaniel G. Taylor2013-05-281-0/+4
| | | | Add `secureProtocol` parameter docs to the https.request method.
* tls: Add `secureProtocol` docsDaniel G. Taylor2013-05-281-0/+5
| | | | Add `secureProtocol` parameter docs to the tls.connect method.
* uv: Upgrade to v0.10.9isaacs2013-05-285-11/+43
|
* tls: invoke write cb only after opposite read endFedor Indutny2013-05-282-27/+144
| | | | | | | | | Stream's `._write()` callback should be invoked only after it's opposite stream has finished processing incoming data, otherwise `finish` event fires too early and connection might be closed while there's some data to send to the client. see #5544
* tls: ignore .shutdown() syscall errorFedor Indutny2013-05-283-11/+47
| | | | | | | | | | Quote from SSL_shutdown man page: The output of SSL_get_error(3) may be misleading, as an erroneous SSL_ERROR_SYSCALL may be flagged even though no error occurred. Also, handle all other errors to prevent assertion in `ClearError()`.
* doc: add link to Brazilian Node communityRafael Henrique Moreira2013-05-251-2/+4
| | | | Add a link to the Brazilian community portal.
* doc: remove broken links on community pageRafael Henrique Moreira2013-05-251-8/+0
| | | | | Links to Node Manual and Node Bits both are broken, so this commit removes them from the community page.
* blog: Post for v0.10.8isaacs2013-05-241-0/+75
|
* Now working on 0.10.9isaacs2013-05-241-2/+2
|
* Merge branch 'v0.10.8-release' into v0.10isaacs2013-05-243-2/+26
|\
| * 2013.05.24, Version 0.10.8 (Stable)v0.10.8v0.10.8-releaseisaacs2013-05-243-2/+26
|/ | | | | | | | | | | | | | | | | | | | | | * v8: update to 3.14.5.9 * uv: upgrade to 0.10.8 * npm: Upgrade to 1.2.23 * http: remove bodyHead from 'upgrade' events (Nathan Zadoks) * http: Return true on empty writes, not false (isaacs) * http: save roundtrips, convert buffers to strings (Ben Noordhuis) * configure: respect the --dest-os flag consistently (Nathan Rajlich) * buffer: throw when writing beyond buffer (Trevor Norris) * crypto: Clear error after DiffieHellman key errors (isaacs) * string_bytes: strip padding from base64 strings (Trevor Norris)
* doc: Minor fixup in http doc re bodyHeadisaacs2013-05-241-1/+0
|
* tls: retry writing after hello parse errorFedor Indutny2013-05-242-1/+58
| | | | | | | | | | | | When writing bad data to EncryptedStream it'll first get to the ClientHello parser, and, only after it will refuse it, to the OpenSSL. But ClientHello parser has limited buffer and therefore write could return `bytes_written` < `incoming_bytes`, which is not the case when working with OpenSSL. After such errors ClientHello parser disables itself and will pass-through all data to the OpenSSL. So just trying to write data one more time will throw the rest into OpenSSL and let it handle it.
* npm: Upgrade to 1.2.23isaacs2013-05-24106-114/+115
|
* uv: upgrade to 0.10.8isaacs2013-05-248-32/+136
|
* http: remove bodyHead from 'upgrade' eventsNathan Zadoks2013-05-246-17/+28
| | | | | Streams2 makes this unnecessary. An empty buffer is provided for compatibility.
* buffer: special case empty string writesTimothy J Fontaine2013-05-232-1/+16
| | | | | Prior to 119354f we specifically handled passing a zero length string to write on a buffer, restore that functionality.