mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Change write callback to asynchronous to avoid recursion
This commit is contained in:
parent
9538b3d5a9
commit
d82c77ef02
@ -104,7 +104,7 @@ function _write(chunk, encoding, callback) {
|
||||
if (this.writeFailed) {
|
||||
/* Once a write fails, just call the callback immediately to let the caller
|
||||
flush any pending writes. */
|
||||
callback();
|
||||
setImmediate(callback);
|
||||
}
|
||||
try {
|
||||
message = this.serialize(chunk);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user