feat: add socket optimization functions for TCP_NODELAY and upstream handling

test: add tests for connection optimizations, caching, and cleanup
This commit is contained in:
2025-12-15 00:31:27 +00:00
parent 49704c0f3b
commit 70830db467
3 changed files with 154 additions and 0 deletions
+2
View File
@@ -18,6 +18,8 @@ void connection_cleanup_idle(void);
int connection_set_non_blocking(int fd);
void connection_set_tcp_keepalive(int fd);
void connection_set_tcp_nodelay(int fd);
void connection_optimize_socket(int fd, int is_upstream);
void connection_add_to_epoll(int fd, uint32_t events);
void connection_modify_epoll(int fd, uint32_t events);