summaryrefslogtreecommitdiff
path: root/Kernel/Net/LocalSocket.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-18 15:58:06 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-18 15:58:06 +0200
commitec65b8db2e48ccbd1804dce594a43a67b1bf5a24 (patch)
tree6537b376b579e40b17ccf58a08a733531ca61b9a /Kernel/Net/LocalSocket.cpp
parent1cca5142afbd76833deedfdb238230ac53424855 (diff)
downloadserenity-ec65b8db2e48ccbd1804dce594a43a67b1bf5a24.zip
Revert "Kernel: Make DoubleBuffer use a KBuffer instead of kmalloc()ing"
This reverts commit 1cca5142afbd76833deedfdb238230ac53424855. This appears to be causing intermittent triple-faults and I don't know why yet, so I'll just revert it to keep the tree in decent shape.
Diffstat (limited to 'Kernel/Net/LocalSocket.cpp')
-rw-r--r--Kernel/Net/LocalSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp
index e8fe103a95..c59ab67699 100644
--- a/Kernel/Net/LocalSocket.cpp
+++ b/Kernel/Net/LocalSocket.cpp
@@ -210,9 +210,9 @@ bool LocalSocket::can_write(FileDescription& description) const
{
auto role = this->role(description);
if (role == Role::Accepted)
- return !has_attached_peer(description) || m_for_client.space_for_writing();
+ return !has_attached_peer(description) || m_for_client.bytes_in_write_buffer() < 16384;
if (role == Role::Connected)
- return !has_attached_peer(description) || m_for_server.space_for_writing();
+ return !has_attached_peer(description) || m_for_server.bytes_in_write_buffer() < 16384;
ASSERT_NOT_REACHED();
}