mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Kernel/Net: make setsockopt pretend it understands SO_KEEPALIVE.
This commit is contained in:
parent
5fe521c507
commit
7fd77e9ffe
Notes:
sideshowbarker
2024-07-19 07:51:44 +09:00
Author: https://github.com/xiaonuofu
Commit: 7fd77e9ffe
Pull-request: https://github.com/SerenityOS/serenity/pull/1658
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/deoxxa
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ KResult Socket::setsockopt(int level, int option, const void* value, socklen_t v
|
|||
m_bound_interface = device;
|
||||
return KSuccess;
|
||||
}
|
||||
case SO_KEEPALIVE:
|
||||
// FIXME: Obviously, this is not a real keepalive.
|
||||
return KSuccess;
|
||||
default:
|
||||
dbg() << "setsockopt(" << option << ") at SOL_SOCKET not implemented.";
|
||||
return KResult(-ENOPROTOOPT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue