首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >BlockHound检测到WebClient的ExchangeFunction的.next()方法为阻塞

BlockHound检测到WebClient的ExchangeFunction的.next()方法为阻塞
EN

Stack Overflow用户
提问于 2020-06-23 18:54:09
回答 1查看 217关注 0票数 0

我正在使用BlockHound分析我的反应器应用程序。我的ExchangeFunction上有过滤器

代码语言:javascript
复制
@Override
public Mono<ClientResponse> filter(ClientRequest request, ExchangeFunction next) {
final ClientRequest.Builder builder = ClientRequest.from(request);
return Mono.defer(() -> next.exchange(builder.build())) //detects blocking call
    .transform(reactiveUtil::contextualize)
    .publishOn(Schedulers.parallel());
}

BlockHoundnext.exchange()上检测到阻塞调用。现在既然我在Netty中使用WebClient,为什么这个调用是非阻塞的呢?在elastic线程上订阅它不会有任何帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-06-25 00:28:40

根据您的要点,BlockHound检测到java.io.FileInputStream.readBytes(..)在SSL握手中处于阻塞状态。

此问题已在https://github.com/reactor/reactor-netty/issues/939中报告,并似乎在最新版本中得到解决。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62533101

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档