Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Try with smaller number of iovecs

  • Loading branch information...
commit d34b5c5ff7482108ce723ace5cbe95c416defdc2 1 parent 2fec393
ry authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  src/node_net.cc
4  src/node_net.cc
@@ -737,10 +737,10 @@ static Handle<Value> Write(const Arguments& args) {
737 737
     assert(args.Length() == 3);
738 738
 
739 739
     Local<String> string = args[1]->ToString();
740  
-    static struct iovec iov[IOV_MAX];
  740
+    static struct iovec iov[20];
741 741
 
742 742
     written =
743  
-      string->WritevAscii(0, (struct String::iovec*)(iov), IOV_MAX);
  743
+      string->WritevAscii(0, (struct String::iovec*)(iov), 20);
744 744
 
745 745
     if (written > 0) {
746 746
       // Count the number of vectors we got.

0 notes on commit d34b5c5

Please sign in to comment.
Something went wrong with that request. Please try again.