grpc / grpc/grpc-java

Rapidly cancelling a Call can overwhelm transport

Open
#1,674 6 comments 0 reactions 1 assignee Claimed by @carl-mastrangelo View on GitHub
performance
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

Doing something like

```
ClientCall call = channel.newCall(foo, CallOptions.DEFAULT);
call.start(listen, new Metadata());
call.sendMessage(null);
call.halfClose();
call.request(1);
call.cancel();
```

rapidly in a loop causes memory to not get reclaimed. Somehow netty is holding on to commands sent to it from the ClientCallImpl.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.