Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-netty: Add support for GC based message leak detection #3162

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Some cleanup
  • Loading branch information
bryce-anderson committed Jan 14, 2025
commit 51fa178093e5501b636014710be7260cb1db4e52
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package io.servicetalk.http.netty;

import io.netty.buffer.ByteBufUtil;
import io.servicetalk.buffer.api.Buffer;
import io.servicetalk.buffer.netty.BufferAllocators;
import io.servicetalk.concurrent.PublisherSource;
Expand All @@ -29,13 +28,14 @@
import io.servicetalk.http.api.HttpServerContext;
import io.servicetalk.http.api.StreamingHttpClient;
import io.servicetalk.http.api.StreamingHttpResponse;

import io.netty.buffer.ByteBufUtil;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Nullable;

import java.net.InetSocketAddress;
import javax.annotation.Nullable;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
Expand Down Expand Up @@ -111,7 +111,6 @@ private static Buffer payload() {
return BufferAllocators.DEFAULT_ALLOCATOR.fromAscii("Hello, world!");
}


private static void abandon(Publisher<?> messageBody) {
SourceAdapters.toSource(messageBody).subscribe(new PublisherSource.Subscriber<Object>() {
@Override
Expand Down