Skip to content

Commit

Permalink
js: 调整 sendAndRequest(timeout=-1)时,表示为流超时
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Jan 10, 2024
1 parent 4f47b4a commit 674066d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected boolean forwardToName(Session requester, Message message, String name)
*/
protected void forwardToSession(Session requester, Message message, Session responder) throws IOException {
if (message.isRequest()) {
responder.sendAndRequest(message.event(), message).thenReply(reply -> {
responder.sendAndRequest(message.event(), message, -1).thenReply(reply -> {
if (requester.isValid()) {
requester.reply(message, reply);
}
Expand Down

0 comments on commit 674066d

Please sign in to comment.