isaacs
1de43149bb
http: Clean up parser usage
...
Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.
Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.
Conflicts:
lib/http.js
2012-05-04 14:58:30 -07:00
isaacs
a9fc63f7a1
Clean up gc tests
...
This fixes the additional issues brought up in #3179 .
2012-05-04 14:31:13 -07:00
isaacs
0abe42a0f4
http: .once() usage in setTimeout
2012-05-04 14:31:08 -07:00
isaacs
e63c7821d5
Tests for memory leaks
...
Conflicts:
Makefile
2012-05-04 14:30:54 -07:00
isaacs
e4dd8dc28e
http leak: Null links from parser to req/res
2012-05-04 14:27:47 -07:00
vvo
5eac8d6739
Fix #3179 HTTP memory leak using ClientRequest.
2012-05-04 14:27:41 -07:00
isaacs
2f93eb6102
http client: Destroy on timeout
2012-05-04 14:27:35 -07:00
isaacs
0a414f4caa
http: Remove socket ondata/onend in parser cleanup
2012-05-04 14:27:30 -07:00
isaacs
9164fa6aaa
Null references to request object on socket errors.
...
Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.
2012-05-04 14:27:24 -07:00
koichik
ebbd4039bc
buffer: add UTF-16LE encoding name.
2012-05-03 23:56:17 +09:00
Ben Noordhuis
e4a8d2617b
addon: add AtExit() function
...
Lets native addons register exit hooks that run after the event loop has quit
but before the VM is killed.
Fixes #3147 .
2012-05-03 16:11:42 +02:00
Igor Zinkovsky
6f82b9f482
64bit offsets for fs calls
2012-05-02 22:39:23 -07:00
Ben Noordhuis
4e290e48b2
fs: fix file descriptor leak in sync functions
...
Fixes #3202 .
2012-05-03 01:08:46 +02:00
Ben Noordhuis
6b426a2edd
Revert "v8: fix "pure virtual method called" runtime error"
...
It makes mksnapshot die with a segmentation fault on sunos with gcc 4.5.2.
This reverts commit c21c51a6fc
.
2012-05-02 22:53:45 +00:00
Ben Noordhuis
880219645e
tcp, udp: share sockaddr-to-object function
...
Share AddressToJS() function between tcp_wrap.cc and udp_wrap.cc.
2012-05-02 18:03:25 +02:00
Fedor Indutny
c3898f3c1f
debugger: support mirroring Date objects
...
* fixes #3203
2012-05-02 15:48:23 +07:00
Yoshihiro Kikuchi
ee2291eb0d
test: add a child domain explicitly
2012-05-02 02:51:28 +02:00
isaacs
fb400b4868
Return after emitting error in tty.js
2012-05-01 15:51:29 -07:00
Nathan Rajlich
b894521bd2
process: ensure that "exit" doesn't get emitted twice on a natural exit
...
Fixes "test/simple/test-process-exit.js".
2012-05-01 14:09:31 -07:00
Fedor Indutny
9f9c333cbc
vm: accept only object as arg of .createContext()
...
Converting strings and others to objects is very slow and essentially
wrong.
2012-05-02 01:59:59 +07:00
Yi, EungJun
4bd54dad33
path: add path.sep to get the path separator.
2012-05-01 15:19:37 +02:00
Kyle Robinson Young
6ba3e68bd2
doc: correct return value of string-based fs.readSync
...
Closes #2330
2012-05-01 15:19:36 +02:00
Ben Noordhuis
b45a10818e
udp: slightly optimize address family property
2012-05-01 15:19:30 +02:00
Ben Noordhuis
e747daf604
udp: make variable names consistent
2012-05-01 14:52:00 +02:00
Shigeki Ohtsu
94f1feeb59
udp: make getsockname() return address family name
2012-05-01 14:50:17 +02:00
Nathan Rajlich
f4403f90f8
tty: emit "error" instead of throwing when getWindowSize() fails
2012-04-30 18:51:20 -07:00
Garen Torikian
6cacb9a21e
doc: add Cloud9 links to docs
2012-05-01 02:25:08 +02:00
Kyle Robinson Young
e02d5c9d41
doc: add args to console methods
2012-05-01 02:25:08 +02:00
Kyle Robinson Young
c9e6d3696c
doc: typo fixes
2012-05-01 02:25:08 +02:00
Nathan Rajlich
f1f5de1c8d
tty: throw an Error when getWindowSize() fails
2012-04-30 16:20:27 -07:00
Michael Thomas
4e4860579e
test: rebuild keys without asking for password
2012-05-01 01:08:31 +02:00
Ben Noordhuis
75c6255d16
deps: remove libuv sanity check
...
Remove reference count check. Unbreaks test suite. This needs to be addressed.
2012-05-01 00:55:46 +02:00
Ben Noordhuis
89e311b1ae
deps: back-port openssl patch
...
Check for potentially exploitable overflows in asn1_d2i_read_bio
BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
in CRYPTO_realloc_clean.
Taken from OpenSSL CVS. Addresses CVE-2012-2110.
2012-05-01 00:40:38 +02:00
Nathan Rajlich
248f552ab4
process: ensure that the "exit" event always has "code" given
...
Upon "normal" exiting of Node (i.e. the event loop completes naturally),
the "code" parameter was not being passed to the "exit" event listeners.
Be consistent. Tests included.
2012-04-30 10:42:13 -07:00
Maciej Małecki
77c18d1e1b
console: throw when no such label exists in `console.timeEnd`
...
Test included.
2012-04-29 22:27:45 +02:00
Bert Belder
3bcbd14bb1
process_wrap: don't use uv_spawn2
...
It was a temporary thing for the 0.6 branch only.
2012-04-29 00:24:51 +02:00
Bert Belder
d2dd9d108d
uv: upgrade to e2cae340a6
2012-04-29 00:22:01 +02:00
Bert Belder
c8a10e97c8
Merge branch 'v0.6'
...
Conflicts:
deps/uv/include/uv-private/uv-unix.h
deps/uv/include/uv-private/uv-win.h
deps/uv/src/uv-common.c
deps/uv/src/win/fs.c
src/process_wrap.cc
2012-04-29 00:17:23 +02:00
ssuda
db844b152a
process: don't use strdup()
...
file and cwd can be directly used from Utf8Value.
Conflicts:
src/process_wrap.cc
2012-04-28 23:51:41 +02:00
Bert Belder
3546383cf0
process_wrap: avoid leaking memory when throwing due to invalid arguments
2012-04-28 23:36:47 +02:00
Andreas Madsen
ab072ee416
doc: document the address object in the cluster listening event
2012-04-28 16:42:55 +02:00
Ben Noordhuis
12a90e98bf
bench: add continuous stress test
...
Useful in tracking down or at least demonstrating memory leaks.
2012-04-27 23:11:32 +02:00
Bert Belder
55e4d54927
Child process: support the `gid` and `uid` options
2012-04-27 22:13:00 +02:00
Bert Belder
51e66ec410
Windows: turn off /Gm
...
Otherwise multicode compile doesn't work.
2012-04-27 22:06:12 +02:00
Bert Belder
0b75eee364
uv: upgrade to d41cc9118d
2012-04-27 22:00:44 +02:00
Bert Belder
e221cd4a53
uv: upgrade to aea5db5da1
2012-04-27 21:28:56 +02:00
Ben Noordhuis
4e84dfa683
bench: run GC and dump stats if --expose-gc is set
2012-04-27 20:38:58 +02:00
Marcel Laverdet
70635753a3
Cleanup vm module memory leakage
...
There are some paths here that led to dangling contexts. By being
smarter with handle management we can get rid of all the cleanup code
and fix those issues.
2012-04-27 10:32:40 -07:00
isaacs
76de7c0c26
Add customary 'fork me on github' banner to website
2012-04-27 07:58:38 -07:00
Nathan Rajlich
f405daa922
repl: make tab completion read up the prototype of "global"
...
For example, there's a global "toString()" function, so the REPL's
tab completion should pick that up.
2012-04-25 20:34:34 -07:00