Skip to content

Commit 440c53e

Browse files
committed
Fix bug:Connection disconnect when command execute take too much time.
1 parent ed51b46 commit 440c53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Quick.Protocol/QpChannel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,8 @@ protected void BeginReadPackage(CancellationToken token)
10411041

10421042
if (LogUtils.LogCommand)
10431043
LogUtils.Log("{0}: [Recv-CommandRequestPackage]Type:{1},Content:{2}", DateTime.Now, typeName, LogUtils.LogContent ? content : LogUtils.NOT_SHOW_CONTENT_MESSAGE);
1044-
1045-
OnCommandRequestReceived(commandId, typeName, content);
1044+
//异步执行命令请求事件处理器
1045+
Task.Run(() => OnCommandRequestReceived(commandId, typeName, content));
10461046
break;
10471047
}
10481048
case QpPackageType.CommandResponse:

0 commit comments

Comments
 (0)