Skip to content

Commit d34b5c5

Browse files
committed
Try with smaller number of iovecs
1 parent 2fec393 commit d34b5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_net.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,10 @@ static Handle<Value> Write(const Arguments& args) {
737737
assert(args.Length() == 3);
738738

739739
Local<String> string = args[1]->ToString();
740-
static struct iovec iov[IOV_MAX];
740+
static struct iovec iov[20];
741741

742742
written =
743-
string->WritevAscii(0, (struct String::iovec*)(iov), IOV_MAX);
743+
string->WritevAscii(0, (struct String::iovec*)(iov), 20);
744744

745745
if (written > 0) {
746746
// Count the number of vectors we got.

0 commit comments

Comments
 (0)