mirror of
https://github.com/brazilofmux/tinymux
synced 2026-08-13 00:23:11 -04:00
The IOCP session socket ran with Nagle enabled — a multi-write burst (trigger, macro, keybinding) serialized at the peer's delayed-ACK cadence, up to ~40ms per write after the first. win32gui compiles the same connection.cpp, so one fix covers both clients. Windows half of #2204. Placed on the ConnectEx COMPLETION, immediately after SO_UPDATE_CONNECT_CONTEXT — before that call the socket is not fully associated and option calls do not behave (mirrors the server IOCP engine's setSocketOptions ordering). Non-fatal by design: a latency hint failing is no reason to drop a working connection. The server's IOCP engine treats the same failure as fatal only because its call site also configures the listener. NOT build-verified: MSVC/IOCP code, no Windows toolchain on this box. The edit is byte-for-byte the fix specified in #2205 at the site it names, and TCP_NODELAY/IPPROTO_TCP come from the winsock2.h/ws2tcpip.h pair connection.h already includes. Wants a Windows build and ideally the #2196-style option-readback confirmation before the issue closes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| console.sln | ||
| console.vcxproj | ||
| PLAN.md | ||
| test_world_cred.cpp | ||