mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
Notes:
sideshowbarker
2024-07-19 09:31:36 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3891e6d7397
@@ -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