@@ -47,6 +47,7 @@ type ConnectionConfig struct {
47
47
ShowInactiveChannels bool
48
48
HideSvrConnJobname bool
49
49
HideAMQPClientId bool
50
+ WaitInterval int
50
51
51
52
CcdtUrl string
52
53
ConnName string
@@ -182,6 +183,7 @@ func initConnectionKey(key string, qMgrName string, replyQ string, replyQ2 strin
182
183
var v map [int32 ]interface {}
183
184
184
185
ci .useStatus = cc .UseStatus
186
+ ci .waitInterval = cc .WaitInterval
185
187
186
188
mqod := ibmmq .NewMQOD ()
187
189
openOptions := ibmmq .MQOO_INQUIRE + ibmmq .MQOO_FAIL_IF_QUIESCING
@@ -407,9 +409,10 @@ func subscribeDurable(topic string, pubQObj *ibmmq.MQObject) (*MQTopicDescriptor
407
409
}
408
410
409
411
/*
410
- subscribe to the } else {
411
- s.removeSubscription()
412
- }nominated topic, but ask the queue manager to
412
+ subscribe to the } else {
413
+ s.removeSubscription()
414
+ }nominated topic, but ask the queue manager to
415
+
413
416
allocate the replyQ for us
414
417
*/
415
418
func subscribeManaged (topic string , pubQObj * ibmmq.MQObject ) (* MQTopicDescriptor , error ) {
@@ -563,7 +566,7 @@ func clearDurableSubscriptions(prefix string, cmdQObj ibmmq.MQObject, replyQObj
563
566
// Now get the responses - loop until all have been received (one
564
567
// per queue) or we run out of time
565
568
for allReceived := false ; ! allReceived ; {
566
- cfh , buf , allReceived , err = statusGetReply ()
569
+ cfh , buf , allReceived , err = statusGetReply (putmqmd . MsgId )
567
570
if buf != nil {
568
571
subName , subId := parseInqSubData (cfh , buf )
569
572
if subName != "" {
@@ -603,7 +606,7 @@ func clearDurableSubscriptions(prefix string, cmdQObj ibmmq.MQObject, replyQObj
603
606
// Don't really care about the responses, just loop until
604
607
// the operation is complete one way or the other
605
608
for allReceived := false ; ! allReceived ; {
606
- _ , _ , allReceived , _ = statusGetReply ()
609
+ _ , _ , allReceived , _ = statusGetReply (putmqmd . MsgId )
607
610
}
608
611
}
609
612
0 commit comments