From 4e9edceb980401d92d45710a07b00872b430fd12 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Mon, 22 Aug 2011 15:57:50 -0700 Subject: [PATCH] windows: temporarily disable non-zero reads --- src/win/tcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/win/tcp.c b/src/win/tcp.c index d0dfd180..61402ab3 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -28,8 +28,11 @@ /* * Threshold of active tcp streams for which to preallocate tcp read buffers. + * (Due to node slab allocator performing poorly under this pattern, + * the optimization is temporarily disabled (threshold=0). This will be + * revisited once node allocator is improved.) */ -const unsigned int uv_active_tcp_streams_threshold = 50; +const unsigned int uv_active_tcp_streams_threshold = 0; /* * Number of simultaneous pending AcceptEx calls.