mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +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:
parent
228a1e9099
commit
3891e6d739
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue