summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_channel_nacl.cc2
-rw-r--r--ipc/ipc_message_attachment_set.h2
-rw-r--r--ipc/ipc_send_fds_test.cc4
3 files changed, 4 insertions, 4 deletions
diff --git a/ipc/ipc_channel_nacl.cc b/ipc/ipc_channel_nacl.cc
index 53397f4..49ac139 100644
--- a/ipc/ipc_channel_nacl.cc
+++ b/ipc/ipc_channel_nacl.cc
@@ -37,7 +37,7 @@ bool ReadDataOnReaderThread(int pipe, MessageContents* contents) {
return false;
contents->data.resize(Channel::kReadBufferSize);
- contents->fds.resize(MessageAttachmentSet::kMaxDescriptorsPerMessage);
+ contents->fds.resize(NACL_ABI_IMC_DESC_MAX);
NaClAbiNaClImcMsgIoVec iov = { &contents->data[0], contents->data.size() };
NaClAbiNaClImcMsgHdr msg = {
diff --git a/ipc/ipc_message_attachment_set.h b/ipc/ipc_message_attachment_set.h
index 7e848bd..b3cc607 100644
--- a/ipc/ipc_message_attachment_set.h
+++ b/ipc/ipc_message_attachment_set.h
@@ -65,7 +65,7 @@ class IPC_EXPORT MessageAttachmentSet
//
// In debugging mode, it's a fatal error to try and add more than this number
// of descriptors to a MessageAttachmentSet.
- static const size_t kMaxDescriptorsPerMessage = 7;
+ static const size_t kMaxDescriptorsPerMessage = 128;
// ---------------------------------------------------------------------------
// Interfaces for transmission...
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index 2e05e03..c681672 100644
--- a/ipc/ipc_send_fds_test.cc
+++ b/ipc/ipc_send_fds_test.cc
@@ -33,8 +33,8 @@ extern "C" {
namespace {
-const unsigned kNumFDsToSend = 7; // per message
-const unsigned kNumMessages = 20;
+const unsigned kNumFDsToSend = 128; // per message
+const unsigned kNumMessages = 3;
const char* kDevZeroPath = "/dev/zero";
#if defined(OS_POSIX)