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
parent 228a1e9099
commit 3891e6d739
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;
}