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
tlshd: clean up some unnecessary code in quic handshake
This patch introduces three cleanups with no functional changes:
1. The function quic_set_nonblocking() and its calls have been removed.
Instead of setting the socket to non-blocking mode with fcntl,
recvmsg(MSG_DONTWAIT) is now used directly to handle asynchronous
receives. This simplifies the code by eliminating redundant operations.
2. The calls to tlshd_quic_session_configure() have been moved from
client.c and server.c into tlshd_quic_start_handshake() within quic.c.
This reduces code duplication and removes the need for an unnecessary
external function declaration.
3. The QUIC_MAX_FRAG_LEN limitation in quic_read_func() was initially
implemented for testing purposes. Since kernel handles fragmentation,
the manual fragmentation loop in quic_read_func() has been removed,
simplifying the code.
Signed-off-by: Xin Long <[email protected]>
0 commit comments