mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge pull request #10182 from ctiller/cpparena
[EXPERIMENTAL] allocate unary response writer against call arena
This commit is contained in:
commit
fab8ad6200
@ -248,6 +248,7 @@ class SendMessageOp : public Op {
|
||||
out->data.send_message.send_message = send_message;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool IsFinalOp() { return false; }
|
||||
void OnComplete(bool success) {}
|
||||
|
||||
@ -264,6 +265,7 @@ class SendClientCloseOp : public Op {
|
||||
EscapableHandleScope scope;
|
||||
return scope.Escape(Nan::True());
|
||||
}
|
||||
|
||||
bool ParseOp(Local<Value> value, grpc_op *out) { return true; }
|
||||
bool IsFinalOp() { return false; }
|
||||
void OnComplete(bool success) {}
|
||||
@ -501,7 +503,7 @@ void DestroyTag(void *tag) {
|
||||
|
||||
void Call::DestroyCall() {
|
||||
if (this->wrapped_call != NULL) {
|
||||
grpc_call_destroy(this->wrapped_call);
|
||||
grpc_call_unref(this->wrapped_call);
|
||||
this->wrapped_call = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user