Home
ReceiveTimeout (MQLONG)
This specifies how long a TCP/IP channel waits to receive data, including heartbeats, from its partner before returning to the inactive state. It applies only to message channels, not to MQI channels.
Use this value as follows:
- To specify that this number is a multiplier, to apply to the negotiated HBINT value, to determine how long a channel waits, set ReceiveTimeoutType to MQRCVTIME_MULTIPLY. Specify a value of 0 or a value in the range 2 to 99.
- To specify that this number is a value, in seconds, to add to the negotiated HBINT value to determine how long a channel waits, set ReceiveTimeoutType to MQRCVTIME_ADD. Specify a value in the range 1 to 999999.
- To specify that this number is a value, in seconds, for the channel to wait, set ReceiveTimeoutType to MQRCVTIME_EQUAL. Specify a value in the range 0 to 999999.
The default value is 0.
To stop a channel timing out its wait to receive data from its partner, set ReceiveTimeoutType to MQRCVTIME_MULTIPLY or MQRCVTIME_EQUAL, and ReceiveTimeout to 0.
This attribute is supported on z/OS only.
To determine the value of this attribute, use the MQIA_RECEIVE_TIMEOUT selector with the MQINQ call.
Home