Microsoft KB Archive/300668

From BetaArchive Wiki
Knowledge Base


PRB: MQReceiveMessage Stalls Sender Application When a Timeout Is Specified and the System Clock Has Been Altered

Article ID: 300668

Article Last Modified on 2/20/2007



APPLIES TO

  • Microsoft Message Queuing 2.0



This article was previously published under Q300668

SYMPTOMS

When you set the system clock forward and then back again during a call to MQReceiveMessage, and you have specified a timeout, the system stalls and blocks further MSMQ operations.

CAUSE

MSMQ uses an absolute timer, not a relative timer.

RESOLUTION

To work around this problem, use asynchronous message processing.

STATUS

This behavior is by design.

REFERENCES

For more information, search for "Asynchronous Reading" in either the Platform Software Development Kit (SDK) or the Microsoft Developer Network (MSDN) library.

Keywords: kbprb KB300668