Adam Malcontenti-Wilson
4099d1eeba
http: make http.get() accept a URL
http.get() now accepts either a URL (as a string) or an options object.
13 years ago
Ben Noordhuis
05b81f333c
doc: clarify stream 'close' event
13 years ago
isaacs
1665b4a2a3
lint
13 years ago
Kevin Bowman
dfcdd5b8aa
fs: add sync open flags 'rs' and 'rs+'
13 years ago
isaacs
643f00d3f9
Merge branch 'master' into v0.6-merge
Conflicts:
src/node.cc
13 years ago
isaacs
faa4d9ff5f
Re-apply http fixes from v0.6 branch properly
13 years ago
Sadique Ali
c9676c9147
build: improve c compiler detection
13 years ago
Ben Noordhuis
9ae6d8fee3
http: fix client request.end() EPIPE race
request.end() would sometimes try to write a zero-length buffer to the socket.
Don't do that, it triggers an unnecessary EPIPE when the other end has closed
the connection.
Fixes #3257 .
13 years ago
isaacs
f8519e10b8
test: stack overflow output
13 years ago
isaacs
9611354f08
lint
13 years ago
Ben Noordhuis
e813e3491e
node: make _getActiveHandles() return user objects
Before this commit, process._getActiveHandles() returned a list of internal
handles. Now, it returns the user objects that handles are attached to.
For example, a tcp_wrap handle will now return its parent net.Socket object.
It works for all handle types except timers because timer handles are shared
across multiple user objects.
13 years ago
Ben Noordhuis
88d7a10128
test: verify that connect reqs are cleaned up
13 years ago
Ben Noordhuis
5f0406534c
process: add _getActiveHandles(), _getActiveRequests()
* process._getActiveHandles() returns a list containing all active handles
(timers, sockets, etc.) that have not been unref'd.
* process._getActiveRequests() returns a list of active requests (in-flight
actions like connecting to a remote host, writing data to a socket, etc.).
13 years ago
Ben Noordhuis
636add246c
req_wrap: share process_symbol, domain_symbol
Share persistent strings process_symbol and domain_symbol across compilation
units. Avoids redefinition errors when src/node.cc includes src/req_wrap.h.
13 years ago
isaacs
5164ae3838
Merge remote-tracking branch 'ry/v0.6' into v0.6-merge
Conflicts:
ChangeLog
deps/uv/include/uv-private/uv-unix.h
deps/uv/src/unix/core.c
deps/uv/src/unix/sunos.c
deps/v8/src/runtime.cc
doc/api/crypto.markdown
lib/http.js
src/node_version.h
test/gc/test-http-client-timeout.js
wscript
13 years ago
isaacs
01103d077b
Guard against emitting 'end' twice on http responses
Conflicts:
lib/http.js
13 years ago
isaacs
a98e845516
Break up huge function in ClientRequest.onSocket
Conflicts:
lib/http.js
13 years ago
isaacs
f19f980724
Now working on 0.6.19
13 years ago
isaacs
2498d15dde
Merge branch 'v0.6.18-release' into v0.6
13 years ago
Ben Noordhuis
a3908f47f1
child_process: hook up handle wrap to owning object
13 years ago
Ben Noordhuis
4ec77e2e28
child_process: rename field _internal to _handle
Consistent with how other classes that are built around HandleWraps call it.
13 years ago
Ben Noordhuis
f66f793c07
net: hook up handle wrap to owning object
13 years ago
Ben Noordhuis
25aea2a072
fs: hook up handle wrap to owning object
13 years ago
Ben Noordhuis
d2eaabd0df
dgram: hook up handle wrap to owning object
13 years ago
isaacs
4bc1d395de
2012.05.15 Version 0.6.18 (stable)
* windows: skip GetFileAttributes call when opening a file (Bert Belder)
* crypto: add PKCS12/PFX support (Sambasiva Suda)
* #3240 : child_process: delete NODE_CHANNEL_FD from env in spawn (Ben Noordhuis)
* windows: add test for path.normalize with UNC paths (Bert Belder)
* windows: make path.normalize convert all slashes to backslashes (Bert Belder)
* fs: Automatically close FSWatcher on error (Bert Belder)
* #3258 : fs.ReadStream.pause() emits duplicate data event (koichik)
* pipe_wrap: don't assert() on pipe accept errors (Ben Noordhuis)
* Better exception output for module load and process.nextTick (Felix Geisendörfer)
* zlib: fix error reporting (Ben Noordhuis)
* http: Don't destroy on timeout (isaacs)
* #3231 : http: Don't try to emit error on a null'ed req object (isaacs)
* #3236 : http: Refactor ClientRequest.onSocket (isaacs)
13 years ago
isaacs
8068f9bf38
Escape leading # signs in 'make email.md'
13 years ago
isaacs
14a5b45c06
Guard against emitting 'end' twice on http responses
13 years ago
isaacs
ea4b1c1c0c
Upgrade libuv to bc4126b
13 years ago
Ben Noordhuis
9b42d7daaf
test: add https + .pfx client/server test
13 years ago
ssuda
fb7348ae06
crypto: add PKCS12/PFX support
Fixes #2845 .
13 years ago
Andreas Madsen
dceebbfa31
child_process: allow sending a net Socket and Server object using child.send
child_process.fork() support sending native hander object, this patch add support for sending
net.Server and net.Socket object by converting the object to a native handle object and back
to a useful object again.
Note when sending a Socket there was emitted by a net Server object, the server.connections
property becomes null, because it is no longer possible to known when it is destroyed.
13 years ago
Andreas Madsen
49f16c4575
doc: move child.send details from child_process.fork to child.send
13 years ago
rsolomo
d40415912f
net: make isIP() return 0 on empty input
13 years ago
Ben Noordhuis
bd907174e8
node: delete NODE_CHANNEL_FD from env
Prevents accidental inheritance by child processes. If the child process is a
node process, it would try to set up a channel with the parent and consequently
never quit because the channel kept the event loop alive.
Fixes #3240 .
13 years ago
Bert Belder
a475e62a3e
Windows: add test for path.normalize with UNC paths
13 years ago
Bert Belder
d91004a73d
Windows: make path.normalize convert all slashes to backslashes
Closes #3066
13 years ago
Bert Belder
d8351a2ef4
Automatically close FSWatcher on error
Closes #3250
13 years ago
koichik
5f9ffa17b1
fs: fix ReadStream.pause() emits duplicate data event
Fixes #3258 .
13 years ago
Nathan Rajlich
38542f76a9
buffer: make SlowBuffer inherit from Buffer
This frees us from manually having to copy over functions to SlowBuffer's
prototype (which has bitten us multiple times in the past).
As an added bonus, the `inspect()` function is now shared between Buffer
and SlowBuffer, removing some duplicate code.
Closes #3228 .
13 years ago
isaacs
9239088e87
500 is a magic number for the GC for some reason
13 years ago
isaacs
07d8a4650e
Break up huge function in ClientRequest.onSocket
13 years ago
Ben Noordhuis
884499d37e
build: fix cross-compiling
Take arch cflags in account when building libuv.
13 years ago
isaacs
a811a4a130
Fix #3058 querystring: Fix incorrect handling of empty keys
13 years ago
Shigeki Ohtsu
cc8cfb145a
doc: fix typo in buffer documentation
Fixes #3253 .
13 years ago
Ben Noordhuis
12fc9fa8a7
test: add failing dgram refcount test
Idle UDP sockets (reading nor writing) should not keep the event loop alive.
This will get fixed in v0.8 one way or the other.
13 years ago
Ben Noordhuis
68f63fe9ec
child_process: make copy of options arg
Make a copy of the options object that the user passes in, we modify it.
13 years ago
Ben Noordhuis
928d28a7b3
util: make _extend() more robust
Add a better 'is object?' check, the old one let values like true slip through.
13 years ago
vegorov@chromium.org
52f0c37d09
Runtime_NotifyDeoptimized should search for function activation in all thread stacks.
R=fschneider@chromium.org
BUG=v8:1763
Review URL: http://codereview.chromium.org/8240004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@9588 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
13 years ago
isaacs
07be9fc3a6
Merge remote-tracking branch 'ry/v0.6' into v0.6-merge
Conflicts:
Makefile
lib/zlib.js
src/node.cc
src/node.js
13 years ago
Philip Tellis
493beb23f2
doc: fs.ReadableStream does not have a destroySoon method
13 years ago