xuxueli / xxl-rpc

A high performance, distributed RPC framework.(分布式服务框架XXL-RPC)
http://www.xuxueli.com/xxl-rpc/
Apache License 2.0
620 stars 404 forks source link

Always send response #55

Open trask opened 1 month ago

trask commented 1 month ago

Hi!

Over in the OpenTelemetry Java Instrumentation project, we got a report about our project causing OOM when instrumenting xxl-rpc's netty usage (https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/11942).

We have mitigated the OOM (https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12003), but we aren't able to correctly instrument netty when there's no response sent for a request (because we can't tell the difference between that and HTTP pipelining).

Is there any chance you'd accept this PR to send an empty response here, so that we can correctly instrument xxl-rpc? Thanks!