Skip to content

Commit

Permalink
Merge branch '0.8.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Maldini committed Oct 24, 2019
2 parents dc17ab1 + 928f271 commit 0e0336f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -31,6 +31,7 @@
import java.util.concurrent.atomic.AtomicInteger;

import io.netty.channel.ChannelHandler;
import io.netty.handler.codec.LineBasedFrameDecoder;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.timeout.WriteTimeoutHandler;
import org.junit.Test;
Expand Down Expand Up @@ -84,13 +85,14 @@ private void doTestPublisherSenderOnCompleteFlushInProgress(boolean useScheduler
.wiretap(true)
.bindNow(Duration.ofSeconds(30));

Flux<String> flux = Flux.range(1, 257).map(count -> count + "");
Flux<String> flux = Flux.range(1, 257).map(count -> count + "\n");
if (useScheduler) {
flux.publishOn(Schedulers.single());
}
Mono<Integer> code =
HttpClient.create()
.tcpConfiguration(tcpClient -> tcpClient.doOnConnected(conn -> {
conn.addHandler(new LineBasedFrameDecoder(10));
if (handler != null) {
conn.addHandlerLast(handler);
}
Expand Down

0 comments on commit 0e0336f

Please sign in to comment.