首页 > 解决方案 > SqlConnection ExecuteAsync 在 Linux 上挂起,但在 Windows 上没有

问题描述

ASP.Net 核心

我有代码而不是电话 var resp = await conn.ExecuteAsync("procedureName", sqlParams, commandType: CommandType.StoredProcedure).ConfigureAwait(false)

当我在我的 Windows 机器上启动我的应用程序时 - 一切正常。但是当我在 linux 上部署它时,执行会挂起执行此ExecuteAsync方法。当我从 Masstransit 消费者调用我的代码时会发生这种情况,并且不是每个请求都会发生。为什么会有不同

标签: linuxfreezemasstransitsqlcommand

解决方案


您是否正在运行引用相同数据库环境的应用程序?


推荐阅读