How to programmatically timeout an (MC_)ALLOCATE verb (246723)
The information in this article applies to:
- Microsoft Host Integration Server 2004
- Microsoft Host Integration Server 2000
- Microsoft SNA Server 3.0
- Microsoft SNA Server 3.0 SP1
- Microsoft SNA Server 3.0 SP2
- Microsoft SNA Server 3.0 SP3
- Microsoft SNA Server 3.0 SP4
- Microsoft SNA Server 4.0
- Microsoft SNA Server 4.0 SP1
- Microsoft SNA Server 4.0 SP2
- Microsoft SNA Server 4.0 SP3
This article was previously published under Q246723 SUMMARY
This article demonstrates how a developer can use the APPC WinAsyncAPPCEx() function in combination with the Win32 WaitForSingleObjectEx() to expire an (MC_)ALLOCATE verb when a predefined time-out interval has elapsed.
Microsoft does not recommend canceling an outstanding [MC_]ALLOCATE unless the request has been outstanding for a reasonable period of time (at least 20 seconds). If [MC_]ALLOCATE is issued with rtn_ctl = AP_WHEN_SESSION_ALLOCATED, the request does not complete until an available bound LU6.2 session is allocated from an SNA Server computer that supports the Local LU/ Remote LU/Mode being requested. A couple possible causes for slow [MC_]ALLOCATE response time include the following:
- If all available LU6.2 sessions are already in use, then the [MC_]ALLOCATE will block until a current conversation ends, creating an available LU6.2 session. If this is occurring frequently, consider increasing the parallel session limit in the SNA Server Mode and the remote application subsystem.
- If the APPC LU session is supported through an on-demand connection, and the connection is slow to activate (such as over SDLC)
Also, in order for the SNA Server computer(s) to properly handle cancelled [MC_]ALLOCATE requests, the computer(s) should be running at least SNA Server 4.0 SP2 or greater.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
195996
SNA Server incorrectly handles cancelled allocate requests
Modification Type: | Major | Last Reviewed: | 5/19/2005 |
---|
Keywords: | kbinfo KB246723 |
---|
|