fixes #2669.txn queue polling with timeout.