Class DisableInterruptOnCancelHttpServiceFilter

java.lang.Object
io.servicetalk.http.api.DisableInterruptOnCancelHttpServiceFilter
All Implemented Interfaces:
HttpExecutionStrategyInfluencer, StreamingHttpServiceFilterFactory, ExecutionStrategyInfluencer<HttpExecutionStrategy>

public final class DisableInterruptOnCancelHttpServiceFilter extends Object implements StreamingHttpServiceFilterFactory
Stops the thread running a BlockingStreamingHttpService from being interrupted when the response is cancelled.

Applies to HttpServerBuilder.listenBlockingStreaming(BlockingStreamingHttpService), also behind a router, in any filter position. No effect on HttpServerBuilder.listenBlocking(BlockingHttpService) or asynchronous services.

The service sees the cancel only as an IOException from the next write or flush. Other blocking calls, including reads of the request payload, are not woken up.