TEST_RTS_AND_POST Does Not Work When Using WinAsyncAppc Call (194082)



The information in this article applies to:

  • Microsoft Host Integration Server 2000
  • Microsoft SNA Server 3.0 SP1
  • Microsoft SNA Server 3.0 SP2
  • Microsoft SNA Server 3.0 SP3
  • Microsoft SNA Server 4.0
  • Microsoft SNA Server 4.0 SP1

This article was previously published under Q194082

SYMPTOMS

The APPC/CPI-C command TEST_RTS_AND_POST does not work when using a WinAsyncAppc call. If the TEST_RTS_AND_POST verb is called asynchronously, the APPC library signals the completion of the event but never receives the post event.

CAUSE

TEST_RTS_AND_POST is one of the set of "post" APPC verbs which completes twice.

The TEST_RTS_AND_POST verb contains a post event. When the APPC library receives the verb, it makes a note of this post event, and then completes the verb immediately in the normal way, either by returning control to the application (if called synchronously) or by signaling a completion event which has also been supplied with the verb (if called asynchronously). Note that the completion event is different from the post event which the verb contained.

This is the first completion for the verb.

Later, if the APPC library gets a change direction message from the SNA Server service, it signals the post event.

This is the second completion of the verb.

The problem is that if the verb is called asynchronously, the APPC library signals the first completion correctly, but for the second completion it signals the completion event again, rather than the post event.

An application written to wait for the completion of the post event waits forever, and the application thinks that a change direction message has never been received by the APPC library.

RESOLUTION

Microsoft has confirmed that this is a problem in all versions and service packs of SNA Server that are listed in the Applies To section of this article. Microsoft is researching this problem and will post more information in this article when the information becomes available.

This problem was corrected in the latest SNA Server version 4.0 U.S. service pack. For information on obtaining this Service Pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

S E R V P A C K


Modification Type:MinorLast Reviewed:5/18/2005
Keywords:kbbug kbfix KB194082