diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index 2b1dbcf3ca..e1d973af20 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -651,7 +651,9 @@ void retransmit_tcp_packets() // in case retransmit_packets() realizes that it wants to close the socket. NonnullRefPtrVector sockets; TCPSocket::sockets_for_retransmit().for_each_shared([&](const auto& socket) { - sockets.append(socket); + // We ignore allocation failures above the first 16 guaranteed socket slots, as + // we will just retransmit their packets the next time around + (void)sockets.try_append(socket); }); for (auto& socket : sockets) {