diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-11 16:18:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-12 13:47:07 +0200 |
commit | c0800ab8985aee9c0ad14976ca904023a6de8e19 (patch) | |
tree | 61bc4868864c7fefcd2bd4cc7671f9def02c83fd /Kernel/Net | |
parent | b83a1101744fccf56e254a0711514b3ef5f091fc (diff) | |
download | serenity-c0800ab8985aee9c0ad14976ca904023a6de8e19.zip |
Kernel: Increase the default TCP window size
This increases the default TCP window size to a more reasonable
value of 64k. This allows TCP peers to send us more packets before
waiting for corresponding ACKs.
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/TCPSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index 251bbb1f5d..fa78211056 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -174,7 +174,7 @@ KResult TCPSocket::send_tcp_packet(u16 flags, const UserOrKernelBuffer* payload, VERIFY(local_port()); tcp_packet.set_source_port(local_port()); tcp_packet.set_destination_port(peer_port()); - tcp_packet.set_window_size(1024); + tcp_packet.set_window_size(NumericLimits<u16>::max()); tcp_packet.set_sequence_number(m_sequence_number); tcp_packet.set_data_offset(sizeof(TCPPacket) / sizeof(u32)); tcp_packet.set_flags(flags); |