Windows Terminal Server Clients May Randomly Hang for 35 Seconds or More (233082)
The information in this article applies to:
- Microsoft Windows NT Server 4.0 Terminal Server Edition
This article was previously published under Q233082 IMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
SYMPTOMS
Terminal Server clients may experience an intermittant loss of responsiveness or the client may appear to stop responding (hang) while running programs on the Terminal Server computer. This problem only occurs if one or more users try to gain access to files on other file servers on the network. When the client hangs, all user sessions connected to the Terminal Server computer are affected and the lack of responsiveness may last for 35 seconds or more.
CAUSE
This problem occurs because each Terminal Server client is typically allowed to have one outstanding command, such as a file open or read request to each remote server at a time. When a file operation, such as file open, is sent to a server for a file that is currently in use, the server may send a break oplock request to the client that has the file open. This allows the client owning the locked file a chance to flush any buffered changes before shared use is allowed.
In the case where the client issues a new file open request for a file it already has open, the redirector may temporarily deadlock when the break oplock is received from the server. After sending the oplock break request, the server gives the client 35 seconds, which is the default setting to respond. When the timeout occurs, the server responds to the new file request, breaking the deadlock.
RESOLUTION
To resolve this problem, install Windows NT Server 4.0, Terminal Server Edition Service Pack 4 (SP4). Service Pack 4 provides an option that forces each client to negotiate a session with all remote servers to which it is connected. The negotiation allows the server to specify the number of commands the client may have outstanding at a time, which by default, is 50.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbprb KB233082 |
---|
|