- May 30, 2013
-
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
Conflicts: deps/uv/ChangeLog deps/uv/src/unix/stream.c deps/uv/src/version.c lib/tls.js
-
- May 29, 2013
-
-
Ben Noordhuis authored
-
Daniel G. Taylor authored
Add `secureProtocol` parameter docs to the https.request method.
-
Daniel G. Taylor authored
Add `secureProtocol` parameter docs to the tls.connect method.
-
isaacs authored
-
Fedor Indutny authored
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
-
Fedor Indutny authored
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()`.
-
- May 28, 2013
-
-
isaacs authored
Conflicts: AUTHORS ChangeLog configure deps/uv/ChangeLog deps/uv/src/unix/darwin.c deps/uv/src/unix/stream.c deps/uv/src/version.c deps/v8/src/isolate.cc deps/v8/src/version.cc lib/http.js src/node_version.h
-
- May 25, 2013
-
-
Rafael Henrique Moreira authored
Add a link to the Brazilian community portal.
-
Rafael Henrique Moreira authored
Links to Node Manual and Node Bits both are broken, so this commit removes them from the community page.
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
* 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)
-
isaacs authored
-
Fedor Indutny authored
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.
-
isaacs authored
-
isaacs authored
-
Nathan Zadoks authored
Streams2 makes this unnecessary. An empty buffer is provided for compatibility.
-
- May 24, 2013
-
-
isaacs authored
This leads people to dump their fork build info into the IRC channel, which is noisy and unhelpful.
-
Timothy J Fontaine authored
Prior to 119354f7 we specifically handled passing a zero length string to write on a buffer, restore that functionality.
-
isaacs authored
Otherwise, writing an empty string causes the whole program to grind to a halt when piping data into http messages. This wasn't as much of a problem (though it WAS a bug) in 0.8 and before, because our hyperactive 'drain' behavior would mean that some *previous* write() would probably have a pending drain event, and cause things to start moving again.
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
As is the backport of the abort on uncaught exception wouldn't compile because we it was passing in `this` when it was unnecessary.
-
Timothy J Fontaine authored
-
- May 23, 2013
-
-
Timothy J Fontaine authored
This makes systemtap tracing prettier, you can do things like `stap -e 'probe node_http_server_request { println(probestr); }'` -
Timothy J Fontaine authored
-
Timothy J Fontaine authored
This saves a few calls to gettimeofday which can be expensive, and potentially subject to clock drift. Instead use the loop time which uses hrtime internally. fixes #5497
-
Ben Noordhuis authored
This commit adds an optimization to the HTTP client that makes it possible to: * Pack the headers and the first chunk of the request body into a single write(). * Pack the chunk header and the chunk itself into a single write(). Because only one write() system call is issued instead of several, the chances of data ending up in a single TCP packet are phenomenally higher: the benchmark with `type=buf size=32` jumps from 50 req/s to 7,500 req/s, a 150-fold increase. This commit removes the check from e4b716ef that pushes binary encoded strings into the slow path. The commit log mentions that: We were assuming that any string can be concatenated safely to CRLF. However, for hex, base64, or binary encoded writes, this is not the case, and results in sending the incorrect response. For hex and base64 strings that's certainly true but binary strings are 'das Ding an sich': string.length is the same before and after decoding. Fixes #5528.
-
Trevor Norris authored
Now that Context::New(Isolate*) returns Local, the removed comment is no longer applicable that there is a Persistent which will need to be disposed.
-
Trevor Norris authored
Small change that Context::New requires an isolate and returns Local instead of Persistent.
-
Ben Noordhuis authored
-
Trevor Norris authored
-
isaacs authored
Test typos missed in util deprecation commit
-
- May 22, 2013
-
-
Ben Noordhuis authored
-