mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-21 02:22:51 +00:00
Kernel/TCPSocket: Read window size from peer
During receive_tcp_packet(), we now set m_send_window_size for the socket if it is different from the default. This removes one FIXME from TCPSocket.h.
This commit is contained in:
parent
701b170dc0
commit
e72894f23d
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/Optimoos
Commit: e72894f23d
Pull-request: https://github.com/SerenityOS/serenity/pull/19473
2 changed files with 5 additions and 1 deletions
|
@ -223,7 +223,8 @@ private:
|
|||
UnixDateTime m_last_retransmit_time;
|
||||
u32 m_retransmit_attempts { 0 };
|
||||
|
||||
// FIXME: Parse window size TCP option from the peer
|
||||
// Default to maximum window size. receive_tcp_packet() will update from the
|
||||
// peer's advertised window size.
|
||||
u32 m_send_window_size { 64 * KiB };
|
||||
|
||||
IntrusiveListNode<TCPSocket> m_retransmit_list_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue