Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try with smaller number of iovecs

  • Loading branch information...
commit d34b5c5ff7482108ce723ace5cbe95c416defdc2 1 parent 2fec393
ry ry authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node_net.cc
4 src/node_net.cc
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.