You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a larger read buffer on the client to accommodate servers that ignore a small max_receive_size during the handshake
Summary: If the client sets a small max_udp_payload_size (<1280), some servers ignore it and end up sending larger packets anyway. Currently, our client transport sets its read buffer to the size of the max_udp_payload_size it sent in the handshake, and ends up truncating any incoming packets that are longer than that. Using a larger read buffer enables reading these packets successfully even though the server is violating the max_udp_payload_size parameter.
Reviewed By: lnicco, kvtsoy
Differential Revision: D85821409
fbshipit-source-id: 8257b3367cde8e8a7c7a888beb243ed93e950a19
0 commit comments