Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit ae748dc

Browse files
committed
set pipe handle instance to max allowed by system.
1 parent 1f6717a commit ae748dc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Release/src/http/listener/http_server_named_pipe.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ using namespace http::experimental::details;
4040
#define CRLF std::string("\r\n")
4141
#define CRLFCRLF std::string("\r\n\r\n")
4242

43-
// Maximum number of concurrent named pipe instances (1 instance per request).
44-
const DWORD MAX_NUMBER_OF_CONCURRENT_REQUESTS = 128;
45-
const DWORD nDefaultTimeOut = 20000; // clients wait upto 20 sec for pipe instance to be available when all pipe instances are busy.
43+
const DWORD nDefaultTimeOut = 10000; // clients wait upto 10 sec for pipe instance to be available when all pipe instances are busy.
4644

4745
namespace web
4846
{
@@ -554,7 +552,7 @@ void named_pipe_listener::async_receive_request()
554552
pipe_name.c_str(),
555553
PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED,
556554
PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT,
557-
MAX_NUMBER_OF_CONCURRENT_REQUESTS,
555+
PIPE_UNLIMITED_INSTANCES,
558556
PIPE_BUFFER_SIZE,
559557
PIPE_BUFFER_SIZE,
560558
0,

0 commit comments

Comments
 (0)