mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
IPv4: More work on the TCP implementation.
I can now establish a connection to my little test server on the host.
This commit is contained in:
@@ -2329,6 +2329,7 @@ void Process::finalize()
|
||||
}
|
||||
}
|
||||
}
|
||||
m_blocked_socket = nullptr;
|
||||
|
||||
set_state(Dead);
|
||||
}
|
||||
@@ -2511,10 +2512,10 @@ KResult Process::wait_for_connect(Socket& socket)
|
||||
{
|
||||
if (socket.is_connected())
|
||||
return KSuccess;
|
||||
m_blocked_connecting_socket = socket;
|
||||
m_blocked_socket = socket;
|
||||
block(BlockedConnect);
|
||||
Scheduler::yield();
|
||||
m_blocked_connecting_socket = nullptr;
|
||||
m_blocked_socket = nullptr;
|
||||
if (!socket.is_connected())
|
||||
return KResult(-ECONNREFUSED);
|
||||
return KSuccess;
|
||||
|
||||
Reference in New Issue
Block a user