Skip to content

Commit

Permalink
Discard cancellation response, skip in queue, pass on signal
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Gao <[email protected]>
  • Loading branch information
shikokuchuo authored Dec 11, 2024
1 parent d09c988 commit 12ce2e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/dispatcher.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ dispatcher <- function(host, url = NULL, n = NULL, ..., tls = NULL, pass = NULL,
value <- .subset2(res, "value")
id <- as.character(.subset2(res, "aio"))
res <- recv_aio(psock, mode = 8L, cv = cv)
if (outq[[id]][["msgid"]] < 0) {
outq[[id]][["msgid"]] <- 0L
nanonext::cv_signal(cv)
next
}
send(outq[[id]][["ctx"]], value, mode = 2L, block = TRUE)
outq[[id]][["msgid"]] <- 0L
}
Expand Down

0 comments on commit 12ce2e5

Please sign in to comment.