summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libappfuse/FuseBuffer.cc')
-rw-r--r--libappfuse/FuseBuffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappfuse/FuseBuffer.cc b/libappfuse/FuseBuffer.cc
index b42a04954..fd69849a7 100644
--- a/libappfuse/FuseBuffer.cc
+++ b/libappfuse/FuseBuffer.cc
@@ -141,8 +141,8 @@ bool SetupMessageSockets(base::unique_fd (*result)[2]) {
141 } 141 }
142 142
143 constexpr int kMaxMessageSize = sizeof(FuseBuffer); 143 constexpr int kMaxMessageSize = sizeof(FuseBuffer);
144 if (setsockopt(fds[0], SOL_SOCKET, SO_SNDBUF, &kMaxMessageSize, sizeof(int)) != 0 || 144 if (setsockopt(fds[0], SOL_SOCKET, SO_SNDBUFFORCE, &kMaxMessageSize, sizeof(int)) != 0 ||
145 setsockopt(fds[1], SOL_SOCKET, SO_SNDBUF, &kMaxMessageSize, sizeof(int)) != 0) { 145 setsockopt(fds[1], SOL_SOCKET, SO_SNDBUFFORCE, &kMaxMessageSize, sizeof(int)) != 0) {
146 PLOG(ERROR) << "Failed to update buffer size for socket"; 146 PLOG(ERROR) << "Failed to update buffer size for socket";
147 return false; 147 return false;
148 } 148 }