Ryan Dahl
6d8b082eed
net_uv: fix localhost resolution - was defaulting to ::1 on OSX
2011-07-14 14:49:50 -07:00
Elijah Insua
b722aaa8c5
Close #1303 Stream.pipe returns the destination
...
Squashed:
* Simple change to make Stream.pipe(destination) return the destination Stream
* Test: ensure Stream.pipe(destination) returns the destination Stream
* updated Stream.pipe() documentation to reflect that it now returns the
destination stream
2011-07-14 14:25:49 -07:00
isaacs
9b5098f509
Close #1281 Make require a public member of module
...
Reviewed by @felixge
2011-07-14 14:25:49 -07:00
Henry Rawas
a13506b48f
net_uv: sockets should be writable during connection
2011-07-14 14:18:17 -07:00
Henry Rawas
8adc6b8921
net_uv: Add maxConnections support
2011-07-14 13:23:08 -07:00
Stefan Rusu
5b02d564c3
Fixes #1085 . The agent end event may call detachSocket() after the socket is detached and destroyed by abort(). This patch avoids that behavior.
2011-07-15 00:33:28 +09:00
Stefan Rusu
901ebed8ff
Fixes #1304 . The Connection instance may be destroyed by abort() when process.nextTick is executed.
2011-07-15 00:32:46 +09:00
koichik
5f97c9a005
Improvements AssertionError message
...
Fixes #217 .
2011-07-14 02:08:24 +09:00
Henry Rawas
92057554d5
fix socket-timeout. Also fix makefile test list name net-stream
2011-07-13 00:29:26 +02:00
Henry Rawas
fad91d16ea
test-net-reconnect needs socket connect event
2011-07-12 09:54:40 -07:00
koichik
d38fac2230
Fixes #1260
...
RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617
2011-07-08 17:18:42 -07:00
Ryan Dahl
91f1b250ec
mraleph emit hack
2011-07-08 17:08:52 -07:00
Henry Rawas
1018e7d23f
isIP test
2011-07-08 10:36:16 -07:00
Henry Rawas
e81a89b116
fix eaddrinuse bug
2011-07-07 16:31:41 -07:00
Henry Rawas
3c52fd006e
net_uv: fix test-net-eaddrinuse.js
2011-07-07 15:55:12 -07:00
Henry Rawas
b6f6a1ca11
ipv6 node
2011-07-07 15:51:55 -07:00
Ben Noordhuis
b62ecdc5bb
Revert 3e2a2a7
. Always send a HTTP/1.1 status line to the client.
2011-07-07 23:54:13 +02:00
Ben Noordhuis
3e8667d829
Revert 8dc8773
. Always send a HTTP/1.1 status line to the client.
2011-07-07 23:49:31 +02:00
isaacs
87900b14da
url: Don't swallow punycode errors
2011-07-06 13:17:50 -07:00
isaacs
8475e1527d
punycode: Test for integer overflow
2011-07-06 13:17:50 -07:00
Jeremy Selier
2a848fa727
Close #1149 IDNA and Punycode support in url.parse
...
Using @bnoordhuis's punycode lib.
Close #1174 also
2011-07-06 13:17:50 -07:00
Yoshihiro Kikuchi
82cfdb88fa
fix an broken question.
...
Fixes #1274 .
2011-07-06 09:24:37 +09:00
Ryan Dahl
d1eba2b18b
Revert "Fixes #1260"
...
Due to downgrade of V8.
This reverts commit 3e2abd12d3
.
2011-07-05 16:49:13 -07:00
Ryan Dahl
64a06c5ffd
Revert "Error argument for http.ServerRequest 'close'"
...
Too slow.
This reverts commit e7ac6d8fcd
.
2011-07-05 15:48:31 -07:00
Ryan Dahl
c0d3f1f485
uv: exception.code isntead of exception.errno
2011-07-05 12:08:17 -07:00
Ryan Dahl
ede1acc1ed
Revert "Remove 'connect' event from server side sockets"
...
Fixes #1276
This reverts commit f0a440d886
.
2011-07-05 10:56:15 -07:00
Ben Noordhuis
f91988979f
Don't send a HTTP/1.1 status line to HTTP/1.0 clients.
...
Fixes #1234 .
2011-07-05 01:41:30 +02:00
Bert Belder
1037f5c113
Fix bug in timers_uv timeout recomputation
...
Closes #1209
2011-07-05 01:31:23 +02:00
Ben Noordhuis
8dc87731c7
Don't send a HTTP/1.1 status line to HTTP/1.0 clients.
...
Fixes #1234 .
2011-07-05 01:13:57 +02:00
Ryan Dahl
24a671a8aa
legacy c-ares binding should use legacy timer
2011-07-04 15:56:56 -07:00
Bert Belder
858f23094e
Bindings for libuv-integrated c-ares
2011-07-05 00:17:20 +02:00
Bert Belder
3b16a89b3a
Fix net_uv.isIPv4/6 bug
2011-07-05 00:04:57 +02:00
Adam Luikart
7f30f13543
Update POSIX splitPathRe to allow control chars. Fixes #1230 .
...
Use [\s\S] instead of . to match any char, including newlines.
2011-07-04 22:50:27 +02:00
Ryan Dahl
38f3bf6610
net_uv: add isIP
...
Issue #1270 : Doesn't completely pass test/simple/test-net-isip.js yet.
2011-07-04 11:33:29 -07:00
Jörn Horstmann
ff50310cc5
Fixed a typo in a comment: "realpatch" -> "realpath"
2011-07-04 19:40:23 +02:00
Jörn Horstmann
8cecc50b9d
Fixed a typo in a comment: "realpatch" -> "realpath"
2011-07-04 09:53:30 -07:00
koichik
c60cdcda4e
Fix net.Socket.connect argument parsing
...
Fixes #1251 .
2011-07-05 00:52:16 +09:00
koichik
3e2abd12d3
Fixes #1260
...
RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617
2011-07-03 12:19:44 -07:00
Ryan Dahl
6d8b43c366
http: Fix agent id creation
...
Unbreaks test-regress-GH-877.js
2011-07-03 11:05:14 -07:00
Ryan Dahl
69d20f5352
use_uv: Correct readyState on connecting
2011-07-02 00:18:36 -07:00
Ryan Dahl
a1e8fcc5ae
Merge branch 'v0.4'
2011-07-01 20:32:41 -07:00
Henry Rawas
56ec4e4f3c
net_uv: fix test-net-connect-timeout.js test
2011-07-01 17:53:48 -07:00
Ryan Dahl
efca5456b8
Fixes #877 . Don't wait for socket pool to establish connections.
...
Thanks to Yann Biancheri for putting together an initial test.
2011-07-01 15:49:42 -07:00
Ryan Dahl
f78f654131
Revert "debugger: don't allow users to input non-valid commands"
...
breaks 'print' command
This reverts commit 37d529f818
.
2011-07-01 15:38:53 -07:00
Henry Rawas
4c480551c3
net_uv: reuse socket
2011-07-01 09:01:06 -07:00
Yoshihiro KIKUCHI
99b210d7ea
tiny fixes in tty_posix.js
...
Close #1158
Close #1160
Close #1252
2011-07-01 00:33:41 -07:00
Ryan Dahl
e38ae476ef
net_uv: Stub out setKeepAlive
2011-06-30 14:53:22 -07:00
Ryan Dahl
be1b55289f
net_uv: Fix server.listen argument parsing
2011-06-29 18:04:55 +02:00
Ryan Dahl
20996dbc2b
Revert "Add support for file descriptor type detection."
...
This reverts commit 911cbd0cef
.
This patch is broken on Linux and I don't want to think about the
functionality during the Windows port. We can reconsider it after v0.6.
2011-06-29 15:25:11 +02:00
Henry Rawas
d64e070e26
net_uv: Delay listen emit
2011-06-29 15:20:53 +02:00
Ryan Dahl
d005cc5cc9
Enable new timer binding only on --use-uv
2011-06-29 15:14:55 +02:00
Ryan Dahl
23b8931b62
Merge branch 'v0.4'
...
Conflicts:
src/node.js
src/node_version.h
2011-06-29 14:50:03 +02:00
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
2011-06-28 13:52:36 +02:00
koichik
6c121edc60
Fix mismatch createConnection and Socket.connect
...
net.createConnection() is wrapper for net.Socket.connect(),
but There is mismatch between them.
net.createConnection(port, [host])
net.Socket.connect(port, [host], [callback])
Fixes #1208 .
2011-06-28 13:36:45 +02:00
Ryan Dahl
02699a3a8e
net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var
2011-06-20 15:51:03 +02:00
Ryan Dahl
d0a9e64245
net_uv: Don't add listenerCallback when null
2011-06-20 14:48:00 +02:00
Ryan Dahl
d627083ed5
Fixes #1187 . Support multiple 'link' headers
2011-06-20 12:51:30 +02:00
Ryan Dahl
f6ce86af04
net_uv: Export Socket and Stream
2011-06-17 18:09:15 +02:00
Ryan Dahl
dc0556c8cd
net_uv: Implement end(), destroySoon()
2011-06-17 17:10:12 +02:00
Ryan Dahl
e697cfb6fc
net_uv: shim up more methods
2011-06-17 14:27:02 +02:00
Ryan Dahl
52b517c6ab
Revert "Add --cov code coverage option"
...
This can be done in user space. EG https://github.com/cloudkick/whiskey
This reverts commit da9b3340eb
.
This reverts commit b4ff36a41b
.
Conflicts:
src/node.cc
2011-06-17 14:03:05 +02:00
Ryan Dahl
710f8e2acc
Add --use-uv command-line flag to use libuv backend
2011-06-17 13:51:40 +02:00
Ryan Dahl
312ed83827
Support eof in net_uv
2011-06-17 13:36:16 +02:00
Ryan Dahl
8bf5b8d352
Initial pass at new net.js for libuv
2011-06-16 21:11:05 +02:00
Ryan Dahl
3d7d994ffc
Merge branch 'v0.4'
...
Conflicts:
doc/api/modules.markdown
test/simple/test-crypto.js
2011-06-15 14:43:37 +02:00
Mathias Buus
39246f65df
Closes #1177 remove one node_modules optimization
...
to better support certain project structures.
2011-06-14 15:32:41 -07:00
isaacs
9967c369c9
AMD compatibility for node, with docs and tests
...
Closes #1173
Closes #1170
2011-06-13 16:11:13 -07:00
Ryan Dahl
1ba2c32135
Massage util.inherits for perf increase
2011-06-11 08:51:48 +02:00
Bert Belder
d9aa9b54cf
Use timer_wrap instead of the old timer binding
2011-06-08 05:06:13 +02:00
isaacs
794cb60f9e
typo
2011-06-04 10:41:41 -07:00
isaacs
580ab7ba2c
Avoid instanceof for native object types
...
For classes defined in the module, this is fine. For 'Error'
it's probably not very hazardous. However, testing 'Object'
and 'String' is much more reliable using typeof, to work with
the repl and NODE_MODULE_CONTEXT modes.
2011-06-04 10:38:49 -07:00
Ryan Dahl
b6a742d76f
Merge branch 'v0.4'
2011-06-03 16:37:56 +02:00
Siddharth Mahendraker
37d529f818
debugger: don't allow users to input non-valid commands
...
Fixes #1144 .
2011-06-03 14:50:12 +02:00
Ryan Petrello
58a1d7ec30
Close #562 Close #1078 Parse file:// urls properly
...
The file:// protocol *always* has a hostname; it's frequently
abbreviated as an empty string, which represents 'localhost'
implicitly.
According to RFC 1738 (http://tools.ietf.org/html/rfc1738 ):
A file URL takes the form:
file://<host>/<path>
where <host> is the fully qualified domain name of the system on
which the <path> is accessible...
As a special case, <host> can be the string "localhost" or the empty
string; this is interpreted as 'the machine from which the URL is
being interpreted'.
2011-05-27 10:47:34 -07:00
Felix Geisendörfer
f0a440d886
Remove 'connect' event from server side sockets
...
Sockets emitted by the 'connection' event are always connected, having
them emit the 'connect' event makes no sense. It only confused people,
as it's not clear if you have to listen to 'connect' or not.
That try..catch block was also very scary. It would silently swallow
exceptions in 'connect' listeners and destroy the socket. Makes no
sense.
Fixes #1047 .
2011-05-24 11:22:59 -07:00
Felix Geisendörfer
2b91256c61
Fix error handling bug in stream.pipe()
...
Problem: Since stream.pipe() is registering it's own error handlers on
the source and destination stream, it needs to replicate the
EventEmitter 'error' emitting semantics of throwing an error if there
are no other listeners. However, there was a off-by-one error because
the check for remaining listeners was done after cleanup() which means
the pipe's own listener was no longer included.
This would cause 'error' events on either the dest or the source to
throw if there was one other error listener, and while swallowing
the 'error' event if there was no other listener.
Solution: I added a test demonstrating the two issues and fixed the
problem by correcting the off-by-one error.
Fixes #1095 .
2011-05-24 10:50:33 -07:00
Ryan Dahl
860cb906a6
Merge branch 'v0.4'
...
Conflicts:
src/node_version.h
2011-05-22 13:02:06 -07:00
Ryan Dahl
70dd6d4ea3
Fix TJ's assert error
...
Unable to reproduce but connect's "make test TESTS=test/static.test.js" does
it occasionally.
2011-05-20 15:41:04 -07:00
Ryan Dahl
59274e8a33
Merge branch 'v0.4'
...
Conflicts:
lib/crypto.js
lib/tls.js
2011-05-20 10:29:16 -07:00
Ryan Dahl
9c7f89bf56
CryptoStream.prototype.readyState shoudn't reference fd
...
Fixes #1069
2011-05-20 10:20:22 -07:00
Brian White
2de0611b43
Remove unused variable
...
Fixes #1077
2011-05-20 08:51:55 -07:00
Fedor Indutny
21724ecaec
Share SSL context between server connections
...
Fixes #1073 .
2011-05-19 14:45:42 -07:00
Ryan Dahl
0271b785a1
fork: Use utf8 for channel encoding
2011-05-17 10:51:30 -07:00
Ryan Dahl
85bc8d02fa
Merge branch 'v0.4'
...
Conflicts:
src/node_crypto.cc
2011-05-16 19:29:02 -07:00
koichik
d4f82ea590
Fix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"
...
Fixes #1038
2011-05-16 10:21:16 -07:00
Brian White
e505a1215c
Add reading/writing of floats and doubles from/to buffers
...
Code for readIEEE754/writeIEEE754 is from jspack: http://code.google.com/p/jspack/
2011-05-15 18:39:07 -07:00
koichik
80c2fe9456
Fix event listener leak check timing
...
Fixes #1041 .
2011-05-14 14:43:00 -07:00
Felix Geisendörfer
e7ac6d8fcd
Error argument for http.ServerRequest 'close'
...
Problem: It was not possible to detect the reason for a premature
connection termination in http requests.
This patch provides a new `err` argument to the 'close' event which
can be inspected to differentiate between a timeout and a client
actively terminating the connection.
Also contains tests for this new behavior for http and https.
2011-05-14 14:15:31 -07:00
Felix Geisendörfer
1fde5f51b4
Make https 'timeout' events bubble up
...
Also adds a test case for it.
2011-05-14 13:38:04 -07:00
Ryan Dahl
337c48db5f
Rename spawnNode to fork
2011-05-11 13:32:40 -07:00
Ryan Dahl
9e26dab150
child_process.spawnNode
...
For making easy worker processes.
2011-05-11 02:24:48 -07:00
isaacs
307f39ce9e
Fix a url regression
...
The change for #954 introduced a regression that would cause
the url parser to fail on special chars found in the auth
segment. Fix that, and also don't create invalid urls when
format() is called on an object containing an auth member
containing '@' characters or delimiters.
2011-05-10 13:57:25 -07:00
isaacs
205b9beb6b
Merge branch 'v0.4'
...
Conflicts:
lib/tls.js
lib/url.js
src/node_version.h
test/simple/test-buffer.js
test/simple/test-url.js
2011-05-07 20:38:32 -07:00
Ryan Dahl
110f06578d
Agent socket errors bubble up to req only if req exists
...
Fixes #836 .
2011-05-07 12:30:58 -07:00
Marcel Laverdet
c2b5ea218c
Attempt to connect to debug process more than once
...
The debugger would give up after only 100ms but on my system this
timeout isn't enough. The startup process is now modified to try 6
times every 50ms instead.
Fixes #1010 .
2011-05-06 20:53:40 -07:00
Ryan Dahl
55bff5bab9
TLS: simplify logic
2011-05-06 17:06:36 -07:00
Håvard Stranden
9f0b1a9bc6
Add Diffie-Hellman support to crypto module
...
Fixes #573
2011-05-06 14:36:04 -07:00
Konstantin Käfer
5e1b7cadb4
Add Buffer::fill method to do memset
...
Fixes #477 .
2011-05-06 13:39:12 -07:00
Ryan Dahl
fc8afd45c7
Fix crash in debugger
2011-05-05 16:52:05 -07:00
Ryan Dahl
75a0cf970f
cleartextstream.destroy() should destroy socket.
...
This fixes a critical bug see in MJR's production. Very difficult to build a
test case. Sometimes HTTPS server gets sockets that are hanging in a
half-duplex state.
2011-05-02 15:03:50 -07:00