mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
IPv4: Sockets should say can_read() after reading is shut down
This allows clients to get their EOF after shutting down reading.
This commit is contained in:
@@ -505,3 +505,9 @@ void IPv4Socket::close()
|
||||
{
|
||||
shutdown(SHUT_RDWR);
|
||||
}
|
||||
|
||||
void IPv4Socket::shut_down_for_reading()
|
||||
{
|
||||
Socket::shut_down_for_reading();
|
||||
m_can_read = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user