|
|
@ -511,6 +511,9 @@ public class CommandAsyncService implements CommandAsyncExecutor {
|
|
|
|
|
|
|
|
|
|
|
|
int timeoutTime = connectionManager.getConfig().getTimeout();
|
|
|
|
int timeoutTime = connectionManager.getConfig().getTimeout();
|
|
|
|
if (QueueCommand.TIMEOUTLESS_COMMANDS.contains(details.getCommand().getName())) {
|
|
|
|
if (QueueCommand.TIMEOUTLESS_COMMANDS.contains(details.getCommand().getName())) {
|
|
|
|
|
|
|
|
// add 1.5 second due to issue https://github.com/antirez/redis/issues/874
|
|
|
|
|
|
|
|
timeoutTime += Math.max(0, 1500 - timeoutTime);
|
|
|
|
|
|
|
|
|
|
|
|
Integer popTimeout = Integer.valueOf(details.getParams()[details.getParams().length - 1].toString());
|
|
|
|
Integer popTimeout = Integer.valueOf(details.getParams()[details.getParams().length - 1].toString());
|
|
|
|
handleBlockingOperations(details, connection, popTimeout);
|
|
|
|
handleBlockingOperations(details, connection, popTimeout);
|
|
|
|
if (popTimeout == 0) {
|
|
|
|
if (popTimeout == 0) {
|
|
|
|