Dave Pacheco
98c57c7c07
dtrace: backport two byte string fix
This is a partial backport of 5921158
Re #6309
Closes #6319
11 years ago
Ben Noordhuis
b011811a9f
fs: fix fs.truncate() file content zeroing bug
fs.truncate() and its synchronous sibling are implemented in terms of
open() + ftruncate(). Unfortunately, it opened the target file with
mode 'w' a.k.a. 'write-only and create or truncate at open'.
The subsequent call to ftruncate() then moved the end-of-file pointer
from zero to the requested offset with the net result of a file that's
neatly truncated at the right offset and filled with zero bytes only.
This bug was introduced in commit 168a5557
but in fairness, before that
commit fs.truncate() worked like fs.ftruncate() so it seems we've never
had a working fs.truncate() until now.
Fixes #6233 .
11 years ago
Ben Noordhuis
d97ea06d88
doc: add warning to fs.exists() documentation
Warn against the open-if-exists anti-pattern, it's susceptible to
race conditions.
11 years ago
Ben Noordhuis
b7f36e187d
doc: link to pre-built binaries, add install note
lLnk to http://nodejs.org/download/ and add a short primer on how to
extract the tarballs.
Fixes #6292 .
11 years ago
Timothy J Fontaine
a63079f34c
blog: Post for v0.10.20
11 years ago
Timothy J Fontaine
d537992d57
Now working on 0.10.21
11 years ago
Timothy J Fontaine
451497c81e
Merge branch 'v0.10.20-release' into v0.10
11 years ago
Timothy J Fontaine
d7234c8d50
2013.09.30, Version 0.10.20 (Stable)
* tls: fix sporadic hang and partial reads (Fedor Indutny)
- fixes "npm ERR! cb() never called!"
11 years ago
Ben Noordhuis
994ce4c99f
src: turn uv_pipe_open() failures into exceptions
uv_pipe_open() is unlikely to fail but when it does, the failure should
not be quietly ignored. Raise the error as an exception.
See joyent/libuv#941 .
11 years ago
Fedor Indutny
671b5be6e9
tls: fix sporadic hang and partial reads
Do not decrement size in read loop, its used later, when comparing to
`bytesRead`.
fix #6270
NOTE: Original patch contributed by @roadrunner2
11 years ago
Timothy J Fontaine
cfa03ad2e3
blog: add missing shasums for v0.10.19 release
11 years ago
Timothy J Fontaine
9135c7fea8
blog: Post for v0.10.19
11 years ago
Timothy J Fontaine
093efafce3
Now working on 0.10.20
11 years ago
Timothy J Fontaine
cb150406c8
Merge branch 'v0.10.19-release' into v0.10
11 years ago
Timothy J Fontaine
6b5e6a5a3e
2013.09.24, Version 0.10.19 (Stable)
* uv: Upgrade to v0.10.17
* npm: upgrade to 1.3.11
* readline: handle input starting with control chars (Eric Schrock)
* configure: add mips-float-abi (soft, hard) option (Andrei Sedoi)
* stream: objectMode transforms allow falsey values (isaacs)
* tls: prevent duplicate values returned from read (Nathan Rajlich)
* tls: NPN protocols are now local to connections (Fedor Indutny)
11 years ago
Timothy J Fontaine
55546f55d4
uv: Upgrade to v0.10.17
11 years ago
Eric Schrock
35ae696822
readline: handle input starting with control chars
Handle control characters only when there is a single byte in the
stream, otherwise fall through to the standard multibyte handling.
12 years ago
Ben Noordhuis
7c554a5cd0
doc: document reserved status of SIGUSR1
Fixes #1212 .
11 years ago
Nathan Rajlich
5bda2bed37
doc: fix typos in the tls `NPNProtocols` option
11 years ago
Nathan Rajlich
afabdf0e15
doc: specify the format of the `ca` tls option
11 years ago
Nathan Rajlich
7196742852
tls: don't push() incoming data when ondata is set
Otherwise the data ends up "on the wire" twice, and
switching between consuming the stream using `ondata`
vs. `read()` would yield duplicate data, which was bad.
12 years ago
Ben Noordhuis
9fad8e5dc4
doc: fix blog link in blog posts and README
Apparently Joyent decommissioned joyeur.com but at least they saved the
contents of the blog. Update the links in the README and the nodejs.org
blog posts.
Hat tip to Eugen Pirogoff (@eugenpirogoff ) for pointing it out.
Fixes #6224 .
11 years ago
Fedor Indutny
1c3863abfd
tls: fix setting NPN protocols
The NPN protocols was set on `require('tls')` or `global` object instead
of being a local property. This fact lead to strange persistence of NPN
protocols, and sometimes incorrect protocol selection (when no NPN
protocols were passed in client options).
fix #6168
12 years ago
Andrei Sedoi
3546825b14
configure: add mips-float-abi (soft, hard) option
12 years ago
isaacs
ebeae2df51
npm: upgrade to 1.3.11
12 years ago
isaacs
1be09dfc25
npm: upgrade to v1.3.10
12 years ago
isaacs
1da7bcc22c
stream: objectMode transforms allow falsey values
Closes #6183
12 years ago
Bert Belder
6301613ff5
uv: upgrade to v0.10.16
12 years ago
Timothy J Fontaine
8b05206665
blog: Post for v0.11.7
12 years ago
Timothy J Fontaine
9c19c1e19c
blog: Post for v0.10.18
12 years ago
Timothy J Fontaine
65ed79a6dc
Now working on 0.10.19
12 years ago
Timothy J Fontaine
86d881f888
Merge branch 'v0.10.18-release' into v0.10
12 years ago
Timothy J Fontaine
67a1f0c52e
2013.09.04, Version 0.10.18 (Stable)
* uv: Upgrade to v0.10.15
* stream: Don't crash on unset _events property (isaacs)
* stream: Pass 'buffer' encoding with decoded writable chunks (isaacs)
12 years ago
Kyle Robinson Young
95794641d2
doc: fix writable.write link
12 years ago
isaacs
00a1d3633c
benchmark: Fix execArgv handling
Bug in 01f3b46
causes the same benchmark to be run repeatedly.
Not so useful for the compare scripts.
12 years ago
isaacs
01f3b468a9
benchmark: Support passing v8 flags to benchmarks
The better to test --use-strict effects on performance.
(Spoiler: it has no measurable effect on performance.)
12 years ago
isaacs
fbb963b5d5
stream: check _events before _events.error
This fixes the regression introduced by 5458079
, which breaks the
net/net-pipe benchmark script.
Closes #6145
12 years ago
isaacs
02eb9c834a
doc: Adjust util stability index to 'API Frozen'
Closes #6087
12 years ago
isaacs
a3da3e7312
stream: Pass 'buffer' encoding to decoded writables
Since the encoding is no longer relevant once it is decoded to a Buffer,
it is confusing and incorrect to pass the encoding as 'utf8' or whatever
in those cases.
Closes #6119
12 years ago
Bert Belder
5508236c49
uv: update to v0.10.15
12 years ago
Timothy J Fontaine
3f1dba18b2
tools: script release steps after jenkins build
12 years ago
Timothy J Fontaine
92e4375173
tools: script to report [un]stable build
12 years ago
Timothy J Fontaine
1d27987dab
blog: Post for v0.10.17
12 years ago
Timothy J Fontaine
3c66b15789
Now working on 0.10.18
12 years ago
Timothy J Fontaine
fcf180327b
Merge branch 'v0.10.17-release' into v0.10
12 years ago
Timothy J Fontaine
469a4a5091
2013.08.21, Version 0.10.17 (Stable)
* uv: Upgrade v0.10.14
* http_parser: Do not accept PUN/GEM methods as PUT/GET (Chris Dickinson)
* tls: fix assertion when ssl is destroyed at read (Fedor Indutny)
* stream: Throw on 'error' if listeners removed (isaacs)
* dgram: fix assertion on bad send() arguments (Ben Noordhuis)
* readline: pause stdin before turning off terminal raw mode (Daniel Chatfield)
12 years ago
Timothy J Fontaine
e445fbda1f
uv: Upgrade v0.10.14
12 years ago
Timothy J Fontaine
985695e4d6
blog: v0.11.6
12 years ago
isaacs
8a9434c4ef
doc: Mention python dep in downloads page
Closes #3604
12 years ago
Ben Noordhuis
8d42c6344b
deps: upgrade http_parser to 303c4e4
Upgrade to joyent/http-parser@303c4e4. Changes:
* Do not accept PUN/GEM methods as PUT/GET.
* Further request method check strengthening.
12 years ago