MQ_WAIT_MSEC

This parameter defines the interval in milliseconds that MQ waits for additional data before returning EOF. If this parameter is not defined, the default value of 5000 is used, which causes MQ to wait for additional data for 5 seconds before returning EOF.

The maximum value allowed is 99999999. When 0 is specified, MQ does not wait for additional data and returns EOF after reading the last record.