diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-11-20 09:52:20 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-20 09:52:20 +0300 |
commit | 464ced4a86e89163ec68a0c2f020720dc82b0191 (patch) | |
tree | 31ce0d356fd794273f9140a86d1d0887c4df7cdd /src | |
parent | 15d5378684e630e341d674c7f67aecb76bd802c6 (diff) |
Actually don't need to limit sendmsg size on unix - seems okay.
Diffstat (limited to 'src')
-rw-r--r-- | src/node_io_watcher.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/node_io_watcher.cc b/src/node_io_watcher.cc index a9477573f02..33e544340f0 100644 --- a/src/node_io_watcher.cc +++ b/src/node_io_watcher.cc @@ -297,10 +297,6 @@ void IOWatcher::Dump() { unix_socket = true; } - // Unix sockets don't like huge messages. TCP sockets do. - // TODO: handle EMSGSIZE after sendmsg(). - size_t max_to_write = unix_socket ? 8*KB : 256*KB; - int fd_to_send = -1; // Offset is only as large as the first buffer of data. (See assert @@ -327,7 +323,7 @@ void IOWatcher::Dump() { // break if we've hit the end bucket_v->IsObject() && // break if iov contains a lot of data - to_write < max_to_write && + to_write < 256*KB && // break if iov is running out of space iovcnt < IOV_MAX; bucket_v = bucket->Get(next_sym), bucket_index++) { |