Commit b17ecde
haiyang.zhou
perf: add TCP_NODELAY, SO_BACKLOG, SO_REUSEADDR for low-latency RESP
- Enable TCP_NODELAY to disable Nagle's algorithm, eliminating
up to 40ms latency on small request-response exchanges
- Add SO_BACKLOG=1024 for better connection burst handling
- Add SO_REUSEADDR=true for faster server restart
Made-with: Cursor1 parent 4385ec5 commit b17ecde
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
0 commit comments