1
0
Fork 0
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:
Xiao NuoFu 2020-04-05 18:10:19 +02:00 committed by Andreas Kling
parent 5fe521c507
commit 7fd77e9ffe
Notes: sideshowbarker 2024-07-19 07:51:44 +09:00

View file

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