diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-18 15:58:06 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-18 15:58:06 +0200 |
commit | ec65b8db2e48ccbd1804dce594a43a67b1bf5a24 (patch) | |
tree | 6537b376b579e40b17ccf58a08a733531ca61b9a /Kernel/Net/LocalSocket.cpp | |
parent | 1cca5142afbd76833deedfdb238230ac53424855 (diff) | |
download | serenity-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.cpp | 4 |
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(); } |