最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

httpclient - Why does disposing of a Flux-based subscription in Micronaut’s Reactor HTTP client hang subsequent requests? - Stac

programmeradmin1浏览0评论

I have a Micronaut application using the declarative Reactor HTTP client, backed by DefaultHttpClient (DefaultHttpClient implements both HttpClient and StreamingHttpClient).

When I subscribe to a request that returns a Flux<T> and call dispose() on the resulting Disposable, any future HTTP calls hang.

Notably, this does not happen if I call the same endpoint returning Mono<List<T>> and then dispose the subscription.

Is this expected behavior, and how can I safely cancel an individual Flux request without shutting down the entire client’s resources?

A sample repo demonstrates the issue, with a README that provides steps to reproduce it.

Any insights or tips would be appreciated!

发布评论

评论列表(0)

  1. 暂无评论