Skip to content

Commit 72afa9e

Browse files
committed
Networking (Linux): improve performance by TFO and response compression
1 parent 7400f14 commit 72afa9e

File tree

6 files changed

+552
-40
lines changed

6 files changed

+552
-40
lines changed

src/common/networking.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <minwindef.h>
88
#endif
99

10+
struct addrinfo;
11+
1012
typedef struct FFNetworkingState {
1113
#ifdef _WIN32
1214
uintptr_t sockfd;
@@ -15,6 +17,7 @@ typedef struct FFNetworkingState {
1517
int sockfd;
1618
FFstrbuf host;
1719
FFstrbuf command;
20+
struct addrinfo* addr;
1821

1922
#ifdef FF_HAVE_THREADS
2023
FFThreadType thread;
@@ -23,6 +26,7 @@ typedef struct FFNetworkingState {
2326

2427
uint32_t timeout;
2528
bool ipv6;
29+
bool compression;
2630
} FFNetworkingState;
2731

2832
const char* ffNetworkingSendHttpRequest(FFNetworkingState* state, const char* host, const char* path, const char* headers);

0 commit comments

Comments
 (0)