Closed JuppLike closed 5 years ago
Version Info: MQ: 9.0.5 MQ-golang: latest go 1.11
buffer := make([]byte, 10000000) // MQGET from inputqueue getmqmd := ibmmq.NewMQMD() gmo := ibmmq.NewMQGMO() gmo.Options = ibmmq.MQGMO_NO_SYNCPOINT | ibmmq.MQGMO_FAIL_IF_QUIESCING | ibmmq.MQGMO_WAIT gmo.WaitInterval = waitInterval len, err := inQueue.Get(getmqmd, gmo, buffer)
When I run this code I get.
MQGET: MQCC = MQCC_FAILED [2] MQRC = MQRC_DATA_LENGTH_ERROR [2010]
With a buffer length smaller of 4 MB everything works fine for message smaller than 4 MB, get MQGET: MQCC = MQCC_WARNING [1] MQRC = MQRC_TRUNCATED_MSG_FAILED for message > 4MB
How can I process this message with mq-golang?
Sorry, I didnt set the maxMsgLength of the channel. Afterwards the package word as expected.
Version Info: MQ: 9.0.5 MQ-golang: latest go 1.11
buffer := make([]byte, 10000000) // MQGET from inputqueue getmqmd := ibmmq.NewMQMD() gmo := ibmmq.NewMQGMO() gmo.Options = ibmmq.MQGMO_NO_SYNCPOINT | ibmmq.MQGMO_FAIL_IF_QUIESCING | ibmmq.MQGMO_WAIT gmo.WaitInterval = waitInterval len, err := inQueue.Get(getmqmd, gmo, buffer)
When I run this code I get.
MQGET: MQCC = MQCC_FAILED [2] MQRC = MQRC_DATA_LENGTH_ERROR [2010]
With a buffer length smaller of 4 MB everything works fine for message smaller than 4 MB, get MQGET: MQCC = MQCC_WARNING [1] MQRC = MQRC_TRUNCATED_MSG_FAILED for message > 4MB
How can I process this message with mq-golang?