Skip to content

Commit

Permalink
Try with smaller number of iovecs
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Nov 21, 2010
1 parent 2fec393 commit d34b5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_net.cc
Expand Up @@ -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.
Expand Down

0 comments on commit d34b5c5

Please sign in to comment.