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:
Andreas Kling 2020-02-08 15:59:21 +01:00
commit 3891e6d739
Notes: sideshowbarker 2024-07-19 09:31:36 +09:00
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}