Limits on Overlapped Pipe Operations

Last reviewed: September 25, 1995
Article ID: Q115522
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows NT versions 3.1 and 3.5
    

SUMMARY

The Windows NT version 3.1 redirector allows only 17 outstanding overlapped pipe operations at any given time. The Windows NT 3.5 redirector does not have this restriction on overlapped pipe writes. However, the Windows NT 3.5 redirector allows only 17 outstanding overlapped pipe reads at any given time.

If the client uses overlapped I/O through the redirector, it is possible for the client to become deadlocked. You may need to increase the number of threads that the redirector uses for I/O; the same thing is true for the server. If your application is doing a lot of I/O, you can avoid this deadlock by creating extra threads and having them use non-overlapped I/O.

MORE INFORMATION

Increasing the workstation services MaxThreads parameter increases the number of kernel threads that the redirector will create, thus allowing more operations to be outstanding at any given time.

This parameter is located in:

   HKEY_LOCAL_MACHINE\SYSTEM\
      CurrentControlSet\
      Services\
      LanmanWorkstation\
      Parameters\
      MaxThreads

The parameter can be set from 0 to 255 (the default is 17).


Additional reference words: 3.10 3.50
KBCategory: kbprg
KBSubcategory: BseFileio


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 25, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.