Skip to content

Fix localhost:13666 proxy CLOSE_WAIT leak (old printer LAN offline) - #588

Open
hjk41 wants to merge 1 commit into
CrealityOfficial:masterfrom
hjk41:fix/httpserver-proxy-closewait
Open

hjk41 wants to merge 1 commit into
CrealityOfficial:masterfrom
hjk41:fix/httpserver-proxy-closewait

Conversation

@hjk41

@hjk41 hjk41 commented Jul 22, 2026

Copy link
Copy Markdown

Summary

Old-printer deviceMgr polls via /proxy; timeout and error paths never closed the client session, so accepted sockets piled up as CLOSE_WAIT until new connections were refused. Always tear down the client after success/failure, avoid reusing Connection:close upstream sockets, and serialize write-then-read.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant