Closing an UDP socket should wake all blocked recv()
This commit is contained in:
@@ -965,6 +965,8 @@ status_t
|
|||||||
UdpEndpoint::Close()
|
UdpEndpoint::Close()
|
||||||
{
|
{
|
||||||
TRACE_EP("Close()");
|
TRACE_EP("Close()");
|
||||||
|
fSocket->error = EBADF;
|
||||||
|
WakeAll();
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user