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:
a0702b5
)
TLS: Don't give up if you can't write 0 bytes
author
Ryan Dahl
<ry@tinyclouds.org>
Wed, 9 Feb 2011 21:27:15 +0000
(13:27 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 9 Feb 2011 21:27:23 +0000
(13:27 -0800)
lib/tls.js
patch
|
blob
|
history
diff --git
a/lib/tls.js
b/lib/tls.js
index
c12513e
..
a39c7a6
100644
(file)
--- a/
lib/tls.js
+++ b/
lib/tls.js
@@
-313,6
+313,8
@@
CryptoStream.prototype._pull = function() {
return;
}
+ if (tmp.length == 0) continue;
+
var rv = this._puller(tmp);
if (this.pair._ssl && this.pair._ssl.error) {
@@
-358,7
+360,7
@@
CleartextStream.prototype._pendingBytes = function() {
CleartextStream.prototype._puller = function(b) {
- debug('
writng from clearIn
');
+ debug('
clearIn ' + b.length + ' bytes
');
return this.pair._ssl.clearIn(b, 0, b.length);
};