Igor Zinkovsky
6f82b9f482
64bit offsets for fs calls
13 years ago
Ben Noordhuis
df2c5fa81d
fs: fix file descriptor leak in sync functions
Fixes #3202 . This is a back-port of commit 4e290e4
.
13 years ago
Ben Noordhuis
4e290e48b2
fs: fix file descriptor leak in sync functions
Fixes #3202 .
13 years ago
Ben Noordhuis
47d6a94656
fs: fix ReadStream / WriteStream double close bug
* Calling fs.ReadStream.destroy() or fs.WriteStream.destroy() twice would close
the file descriptor twice. That's bad because the file descriptor may have
been repurposed in the mean time.
* A bad value check in fs.ReadStream.prototype.destroy() would prevent a stream
created with fs.createReadStream({fd:0}) from getting closed.
13 years ago
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
.
13 years ago
isaacs
c9be1d5ffd
http client: Destroy on timeout
13 years ago
Ben Noordhuis
880219645e
tcp, udp: share sockaddr-to-object function
Share AddressToJS() function between tcp_wrap.cc and udp_wrap.cc.
13 years ago
Fedor Indutny
c3898f3c1f
debugger: support mirroring Date objects
* fixes #3203
13 years ago
Yoshihiro Kikuchi
ee2291eb0d
test: add a child domain explicitly
13 years ago
isaacs
fb400b4868
Return after emitting error in tty.js
13 years ago
isaacs
bce68134b6
http: Remove socket ondata/onend in parser cleanup
13 years ago
isaacs
bfe9cdb7f2
Null references to request object on socket errors.
Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.
13 years ago
Nathan Rajlich
b894521bd2
process: ensure that "exit" doesn't get emitted twice on a natural exit
Fixes "test/simple/test-process-exit.js".
13 years ago
isaacs
acf19500ee
Now working on 0.6.17
13 years ago
Fedor Indutny
9f9c333cbc
vm: accept only object as arg of .createContext()
Converting strings and others to objects is very slow and essentially
wrong.
13 years ago
Yi, EungJun
4bd54dad33
path: add path.sep to get the path separator.
13 years ago
Kyle Robinson Young
6ba3e68bd2
doc: correct return value of string-based fs.readSync
Closes #2330
13 years ago
Ben Noordhuis
b45a10818e
udp: slightly optimize address family property
13 years ago
Ben Noordhuis
e747daf604
udp: make variable names consistent
13 years ago
Shigeki Ohtsu
94f1feeb59
udp: make getsockname() return address family name
13 years ago
Nathan Rajlich
f4403f90f8
tty: emit "error" instead of throwing when getWindowSize() fails
13 years ago
Garen Torikian
6cacb9a21e
doc: add Cloud9 links to docs
13 years ago
Kyle Robinson Young
e02d5c9d41
doc: add args to console methods
13 years ago
Kyle Robinson Young
c9e6d3696c
doc: typo fixes
13 years ago
Nathan Rajlich
f1f5de1c8d
tty: throw an Error when getWindowSize() fails
13 years ago
Michael Thomas
4e4860579e
test: rebuild keys without asking for password
13 years ago
Ben Noordhuis
75c6255d16
deps: remove libuv sanity check
Remove reference count check. Unbreaks test suite. This needs to be addressed.
13 years ago
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.
13 years ago
isaacs
518d28c23a
Merge branch 'v0.6.16-release' into v0.6
13 years ago
isaacs
a1d193963d
2012.04.30 Version 0.6.16 (stable)
* Upgrade V8 to 3.6.6.25
* Upgrade npm to 1.1.19
* Windows: add mappings for UV_ENOENT (Bert Belder)
* linux: add IN_MOVE_SELF to inotify event mask (Ben Noordhuis)
* unix: call pipe handle connection cb on accept() error (Ben Noordhuis)
* unix: handle EWOULDBLOCK (Ben Noordhuis)
* map EWOULDBLOCK to UV_EAGAIN (Ben Noordhuis)
* Map ENOMEM to UV_ENOMEM (isaacs)
* Child process: support the `gid` and `uid` options (Bert Belder)
* test: cluster: add worker death event test (Ben Noordhuis)
* typo in node_http_parser (isaacs)
* http_parser: Eat CRLF between requests, even on connection:close. (Ben Noordhuis)
* don't check return value of unsetenv (Ben Noordhuis)
13 years ago
isaacs
e5ef103b05
Fix #3194 correct url documentation
13 years ago
isaacs
35bcb1d6a9
Indentation fix
13 years ago
isaacs
1ac05cc5ad
Upgrade npm to 1.1.18
13 years ago
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.
13 years ago
Maciej Małecki
77c18d1e1b
console: throw when no such label exists in `console.timeEnd`
Test included.
13 years ago
Bert Belder
3bcbd14bb1
process_wrap: don't use uv_spawn2
It was a temporary thing for the 0.6 branch only.
13 years ago
Bert Belder
d2dd9d108d
uv: upgrade to e2cae340a6
13 years ago
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
13 years ago
ssuda
db844b152a
process: don't use strdup()
file and cwd can be directly used from Utf8Value.
Conflicts:
src/process_wrap.cc
13 years ago
Bert Belder
3546383cf0
process_wrap: avoid leaking memory when throwing due to invalid arguments
13 years ago
Andreas Madsen
ab072ee416
doc: document the address object in the cluster listening event
13 years ago
Ben Noordhuis
12a90e98bf
bench: add continuous stress test
Useful in tracking down or at least demonstrating memory leaks.
13 years ago
Bert Belder
55e4d54927
Child process: support the `gid` and `uid` options
13 years ago
Bert Belder
51e66ec410
Windows: turn off /Gm
Otherwise multicode compile doesn't work.
13 years ago
Bert Belder
0b75eee364
uv: upgrade to d41cc9118d
13 years ago
Bert Belder
e221cd4a53
uv: upgrade to aea5db5da1
13 years ago
Ben Noordhuis
4e84dfa683
bench: run GC and dump stats if --expose-gc is set
13 years ago
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.
13 years ago
isaacs
76de7c0c26
Add customary 'fork me on github' banner to website
13 years ago
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.
13 years ago