From d34b5c5ff7482108ce723ace5cbe95c416defdc2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 20 Nov 2010 20:02:25 -0800 Subject: [PATCH] Try with smaller number of iovecs --- src/node_net.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_net.cc b/src/node_net.cc index d8f610f97e9..ba8a5504cdb 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -737,10 +737,10 @@ static Handle Write(const Arguments& args) { assert(args.Length() == 3); Local string = args[1]->ToString(); - static struct iovec iov[IOV_MAX]; + static struct iovec iov[20]; written = - string->WritevAscii(0, (struct String::iovec*)(iov), IOV_MAX); + string->WritevAscii(0, (struct String::iovec*)(iov), 20); if (written > 0) { // Count the number of vectors we got.