projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f9e8d
)
stream: Empty strings/buffers do not signal EOF any longer
author
isaacs
<i@izs.me>
Mon, 11 Feb 2013 23:45:53 +0000
(15:45 -0800)
committer
isaacs
<i@izs.me>
Tue, 12 Feb 2013 00:43:09 +0000
(16:43 -0800)
lib/_stream_readable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
8c5081f
..
4167063
100644
(file)
--- a/
lib/_stream_readable.js
+++ b/
lib/_stream_readable.js
@@
-229,7
+229,7
@@
Readable.prototype.read = function(n) {
else
ret = null;
- if (ret === null
|| (!state.objectMode && ret.length === 0)
) {
+ if (ret === null) {
state.needReadable = true;
n = 0;
}