From 866254a44f1652977d2f607c8bc9e49fc21cfeff Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Wed, 8 Jun 2022 10:47:36 -0300 Subject: [PATCH] MUXPool.send may block if no connected MUXes fixes #487 --- jpos/src/main/java/org/jpos/q2/iso/MUXPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpos/src/main/java/org/jpos/q2/iso/MUXPool.java b/jpos/src/main/java/org/jpos/q2/iso/MUXPool.java index 833e6a2400..fca8483a79 100644 --- a/jpos/src/main/java/org/jpos/q2/iso/MUXPool.java +++ b/jpos/src/main/java/org/jpos/q2/iso/MUXPool.java @@ -91,7 +91,7 @@ public ISOMsg request (ISOMsg m, long timeout) throws ISOException { } public void send (ISOMsg m) throws ISOException, IOException { - long maxWait = 1000L; // reasonable default + long maxWait = System.currentTimeMillis() + 1000L; // reasonable default MUX mux = getMUX(m,maxWait); if (mux == null)