Skip to content

Commit

Permalink
feat[virtual thread]: support virtual thread in net
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Sep 20, 2023
1 parent cd8431e commit 54209d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/src/main/java/com/zfoo/net/router/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public void atReceiver(PacketReceiverTask packetReceiverTask) {
}

if (receiver.task() == Task.VirtualThread && receiver.attachment() == null) {
logger.warn("virtual thread task can not set Attachment, may cause some sync and async timeout, please use attachment in receiver method signature");
logger.warn("virtual thread task can not set Attachment, may cause some sync and async timeout exception, please use attachment in receiver method signature and use attachment in sync and async request");
}

receiver.invoke(session, packet, attachment);
Expand Down

0 comments on commit 54209d9

Please sign in to comment.