Permalink
Browse files

Try with smaller number of iovecs

  • Loading branch information...
1 parent 2fec393 commit d34b5c5ff7482108ce723ace5cbe95c416defdc2 @ry ry committed Nov 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node_net.cc
View
4 src/node_net.cc
@@ -737,10 +737,10 @@ static Handle<Value> Write(const Arguments& args) {
assert(args.Length() == 3);
Local<String> 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.

0 comments on commit d34b5c5

Please sign in to comment.