Skip to content

Instantly share code, notes, and snippets.

@anilgursel
anilgursel / ResourceReleaseTest.java
Last active October 17, 2019 16:44
A dummy code to understand `doOnDiscard` behavior
import io.netty.buffer.ByteBuf;
import io.netty.handler.codec.http.HttpHeaderNames;
import io.netty.handler.codec.http.HttpMethod;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import reactor.core.publisher.Mono;
import reactor.netty.DisposableServer;
import reactor.netty.http.HttpProtocol;
import reactor.netty.http.client.HttpClient;