mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
accept: assign SOCKET_STATE_CONNECTED to the peer
This commit is contained in:
@@ -77,7 +77,9 @@ syscallret syscall_accept(int sockfd, void* addr, size_t* addrlen){
|
||||
|
||||
peer->peer = connsock;
|
||||
|
||||
peer->state = SOCKET_STATE_CONNECTED;
|
||||
event_signal(&peer->acceptevent, true);
|
||||
|
||||
|
||||
spinlock_release(&peer->lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user