Commit 2afc56e3 authored by Joel Martin's avatar Joel Martin

tcp-client.js: after read, try read again.

After a read completes it's possible more data is pending so issue an
immediate read again to pick this up quickly.
parent ba5a8598
...@@ -249,6 +249,9 @@ Author: Boris Smus (smus@chromium.org) ...@@ -249,6 +249,9 @@ Author: Boris Smus (smus@chromium.org)
this.callbacks.recvString(str); this.callbacks.recvString(str);
}.bind(this)); }.bind(this));
} }
// Trigger another read right away
setTimeout(this._periodicallyRead.bind(this), 0);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment