Skip to content

Commit

Permalink
Tweak channel buffering.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth committed Mar 12, 2017
1 parent 142b9a3 commit 18db3b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/services.js
Expand Up @@ -603,6 +603,9 @@ Client.prototype._emitMessage$ = function (wreq, opts, cb) {
if (this._buffering$) {
debug('no active client channels, buffering call');
this.once('channel', function () {
// We restrict buffering to startup, otherwise we risk silently
// hiding errors (especially since channel timeouts don't apply yet).
this._buffering$ = false;
this._emitMessage$(wreq, opts, cb);
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "avsc",
"version": "5.0.0-rc.23",
"version": "5.0.0-rc.24",
"description": "Avro for JavaScript",
"homepage": "https://github.com/mtth/avsc",
"keywords": [
Expand Down

0 comments on commit 18db3b4

Please sign in to comment.