From 3aa27b5b0e95b8fb975497a2777bc26cd9bf2811 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 8 Oct 2019 21:32:04 +0200 Subject: [PATCH] Kernel: Don't put LocalSocket in SetupState::Completed in bind() This was causing connect() to unblock immediately for local sockets, since that's exactly what ConnectBlocker checks for. Instead, just move to SetupState::Completed when it's accept()ed. --- Kernel/Net/LocalSocket.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index 135306a272..c59ab67699 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -88,7 +88,6 @@ KResult LocalSocket::bind(const sockaddr* address, socklen_t address_size) m_address = local_address; m_bound = true; - set_setup_state(SetupState::Completed); return KSuccess; }