QPID-7361: before waiting for credit, wakeup drive if we have stuff to write out
diff --git a/src/qpid/messaging/amqp/ConnectionContext.cpp b/src/qpid/messaging/amqp/ConnectionContext.cpp
index bb0d32e..25dd68d 100644
--- a/src/qpid/messaging/amqp/ConnectionContext.cpp
+++ b/src/qpid/messaging/amqp/ConnectionContext.cpp
@@ -500,6 +500,7 @@
}
while (!snd->send(message, delivery)) {
QPID_LOG(debug, "Waiting for capacity...");
+ if (pn_transport_pending(engine)) wakeupDriver();
wait(ssn, snd);//wait for capacity
}
wakeupDriver();