koichik
6f60683802
tls: x509 certificate subject parsing fail
Fixes #1568 .
14 years ago
Mikeal Rogers
7c87e092fb
Sockets should never be attached to a ClientRequest before nextTick().
This way the API for interacting directly with the socket object is
consistent before and after the Agent pool is exhausted.
Fixes #1601 .
14 years ago
Peter Lyons
a4eee3d28f
http: remove 'headers sent?' check in OutgoingMessage.getHeader()
Fixes #752 .
14 years ago
Ryan Dahl
16b3f2c3ff
Fix dns_uv.lookup order
14 years ago
Nathan Rajlich
0c91a835ff
util: isRegExp() should not call toString() on its argument
An overloaded toString() method may have side effects
so don't call it for a simple type check.
Back-port of 54b409d
to the v0.4 branch.
14 years ago
Ryan Dahl
2876141c42
dns_uv: add localhost hack for windows
14 years ago
Ben Noordhuis
bba432f00e
dgram: add socket.fd compatibility hack to dgram_uv.js
14 years ago
Ben Noordhuis
cbd4033619
dgram: integrate libuv UDP support
14 years ago
Nathan Rajlich
8ec31a3362
Use Object.getPrototypeOf() on the object in the REPL tab-completion.
Some people use __proto__ to augment an Object's prototype after it's been created.
This patch helps make the "new" prototype properties visible if necessary.
This is also more consistent with the while logic below.
14 years ago
Ryan Dahl
827b9c5f1f
net: fix throw error
Thanks Tobi
14 years ago
Ryan Dahl
ea156359e9
net_legacy: Fix throw typo
Thanks Tobi
14 years ago
koichik
485d5b5dff
dns: Force the DNS module to invoke callbacks asynchronously.
Fixes #1164 .
14 years ago
Ryan Dahl
e3413f08fd
net_uv: throw when people construct net.Socket(fd)
Easier to catch compatibility errors.
14 years ago
Ryan Dahl
c4454d2efc
net_uv: Don't error on ECONNRESET
Fixes #1571 .
14 years ago
Ryan Dahl
cf2e68d960
net_uv: handle read errors
14 years ago
Mikeal Rogers
103990b640
Fixes #1531
14 years ago
Ben Noordhuis
8e8f36f958
Fix #1546 some more. Remove expensive debug call.
14 years ago
Ryan Dahl
9cd510846e
Fixes #1546 . Remove expensive debug call.
14 years ago
koichik
4cf931db17
http: improve compatibility of legacy API
In http1, legacy http.Client shares one connection with multiple requests.
But in http2, it uses concurrent connections.
With --use-http1, test/simple/test-http-legacy.js passes.
However, it fails without --use-http1 (use http2).
This improves compatibility of legacy http.Client API between http1 and http2.
Fixes #1530 .
14 years ago
Mikeal Rogers
584ae7b084
Remove http.cat. fixes #1447
14 years ago
Nathan Rajlich
54b409d650
util: isRegExp() should not call toString() on its argument
An overloaded toString() method may have side effects
so don't call it for a simple type check.
14 years ago
Thomas Shinnick
a5d90c435c
path.js: correct three harmless .length typos
lib/path.js routines normalizeArray() and resolve() have for loops that
count down from end of an array. The loop indexes are initialized using
"array.length" rather than "array.length-1". The initial array element
accessed is always beyond the end of array and the value is 'undefined'.
Strangely, code exists that acts to ignore undefined values so that the
typos are unnoticeable.
Existing tests emit no errors either before or after changing to "length-1".
Tests _do_ start failing at "length-2". (Actually it is node that starts
to fail at "length-2" - that's a valid enough test...)
14 years ago
Glen Low
04122ad2d3
crypto: PBKDF2 function from OpenSSL
14 years ago
Brian White
b7c23ac3f5
Incorporate endianness into buffer.read* function names instead of passing in a boolean flag
14 years ago
Ben Noordhuis
4e204f37fd
net: defer DNS lookup error events to next tick
net.createConnection() creates a net.Socket object
and immediately calls net.Socket.connect() on it.
There are no event listeners registered yet so
defer the error event to the next tick.
Fixes #1202 .
14 years ago
Ben Noordhuis
fa378ee4d8
net: defer DNS lookup error events to next tick
net.createConnection() creates a net.Socket object
and immediately calls net.Socket.connect() on it.
There are no event listeners registered yet so
defer the error event to the next tick.
Fixes #1202 .
14 years ago
Ryan Dahl
3a219de586
net_uv: resume on closed net.Socket shouldn't crash
14 years ago
isaacs
ac4791393e
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
14 years ago
isaacs
3210809d0a
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
14 years ago
Ben Noordhuis
eb09b0644b
http: destroy socket on error
Needs further investigation, the test passed without `--use-uv`.
Fixes failing test:
test/simple/test-http-dns-fail.js
14 years ago
Ryan Dahl
3d4ae3ab4d
net_uv: pipes don't have getsockname
14 years ago
Ben Noordhuis
79f064f565
net: properly export remoteAddress to user land
Fixes failing test:
test/simple/test-net-remote-address-port.js
14 years ago
Ben Noordhuis
460614125b
tcp: propagate libuv tcp accept() errors to net_uv.js
14 years ago
Ryan Dahl
72c412767d
net_uv: Handle failed shutdown req
14 years ago
Ryan Dahl
4f03f1bead
net_uv: fix test/simple/test-pipe-file-to-http.js
14 years ago
Fedor Indutny
942f8b5afb
Add NPN and SNI documentation.
Fixes #1420 .
Fixes #1426 .
14 years ago
Ryan Dahl
0696e78d64
Improve assert error messages
1. actual and expected should be displayed in the same order they were given
2. long values should be truncated.
14 years ago
Ryan Dahl
2689d262ec
Make buffer.INSPECT_MAX_BYTES public for mscdex
14 years ago
Ryan Dahl
7332c4022f
Truncate Buffer.inspect at 50 bytes
14 years ago
Ryan Dahl
2126989a32
Fix test-http-upgrade-server and test-http-parser
Problem was introduced in last http-parser upgrade which fixed a long
standing bug with the upgrade event and removed several callbacks.
14 years ago
Robert Mustacchi
0df08c6a0c
Endian argument should be a boolean. Signed integers shouldn't run through checks for unsigned integers. Clean up jslint. Provide unchecked uint entry points.
14 years ago
Ben Noordhuis
f69822c70e
http2: reword confusing comment
14 years ago
koichik
d439c092c2
Improve util.format() compatibility with browser.
Fixes #1434 .
14 years ago
Mikeal Rogers
24a1f6ecc5
Fixes https host header default port handling.
14 years ago
Bert Belder
567470b136
Child processes: support windowsVerbatimArguments option
14 years ago
Ben Noordhuis
5a49522ba7
child process: don't send signal if process is already terminated
Fixes failing test test/simple/test-exec-max-buffer.js
14 years ago
Ben Noordhuis
b8c8e9c113
net_uv: add listenFD shim that throws when called
14 years ago
Ben Noordhuis
2bbb468428
child process: bind to libuv's kill process API
Fixes failing test test/simple/test-child-process-kill.js
14 years ago
Ben Noordhuis
ac722bbed6
module: strip byte order marker when loading *.js and *.json files
BOMs make V8 raise a 'SyntaxError: Unexpected token ILLEGAL' exception.
Fixes #1440 .
14 years ago
Ryan Dahl
2908f323e1
win: fix test-child-process-exec-cwd
14 years ago