Skip to content

Commit c0800ab

Browse files
gunnarbeutnerawesomekling
authored andcommitted
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.
1 parent b83a110 commit c0800ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel/Net/TCPSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ KResult TCPSocket::send_tcp_packet(u16 flags, const UserOrKernelBuffer* payload,
174174
VERIFY(local_port());
175175
tcp_packet.set_source_port(local_port());
176176
tcp_packet.set_destination_port(peer_port());
177-
tcp_packet.set_window_size(1024);
177+
tcp_packet.set_window_size(NumericLimits<u16>::max());
178178
tcp_packet.set_sequence_number(m_sequence_number);
179179
tcp_packet.set_data_offset(sizeof(TCPPacket) / sizeof(u32));
180180
tcp_packet.set_flags(flags);

0 commit comments

Comments
 (0)