Windows: Agent chat leaks 16k+ ESTABLISHED TCP sockets; local MySQL fails with WSAEADDRINUSE (10048)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

While a single Agent conversation is running, Cursor leaves thousands of ESTABLISHED HTTPS sockets to Cloudflare (104.18.18.125 / 104.18.19.125:443). Child PIDs die and the sockets stay as orphans. This exhausted the Windows ephemeral port range (16384 ports). After that, unrelated local TCP clients fail even though the servers are healthy: Laravel/PHP PDO and official MySQL 8.3 CLI both return WSAEADDRINUSE 10048 connecting to 127.0.0.1:3306. Test-NetConnection to 3306 still succeeds. Live counts in this session: Cursor 414 (385 to that CF pair), Herd 3, Edge 21, orphan PIDs ~16424 (15832 to the same pair). Same class of leak as the closed thread [Bug] Severe TCP Socket Leak / Zombie Connections Causing Enterprise Firewall Exhaustion (20k+ Sessions) but on Windows 11 + Cursor 3.27.22, triggered by Agent use without Wi-Fi flap or sleep.

Steps to Reproduce

  1. Open Cursor 3.27.22 on Windows 11. 2) Start an Agent chat and let it run several minutes with tools, web search, and shell. 3) In PowerShell: (Get-NetTCPConnection -State Established).Count 4) Group connections to 104.18.18.125 and 104.18.19.125 by OwningProcess. 5) Compare Get-Process Cursor, Herd, and msedge. 6) Confirm MySQL83 is LISTENING on 3306. Test-NetConnection 127.0.0.1 3306 succeeds. mysql.exe -h 127.0.0.1 -P 3306 and Laravel session queries both fail with WSAEADDRINUSE 10048.

Expected Behavior

Agent/HTTP/2 sockets must be closed (FIN/RST) when the child process or request ends. They must not fill the entire Windows ephemeral port range and break local MySQL/other outbound TCP.

Operating System

Windows 10/11

Version Information

Cursor 3.27.22 (stable), commit b1aa50cb6db84fd3e8c808259cb172ea73425c10 (2026-10-27)

For AI issues: which model did you use?

Auto (Agent chat). Transport-layer leak, not model-specific.

Additional Information

MySQL is official MySQL 8.3 service MySQL83 (Installer/Workbench), not Herd Pro. Listens on 3306. Test-NetConnection succeeds. Herd tray has no MySQL status. 16k orphan ESTABLISHED sockets go to the same Cloudflare pair live Cursor.exe still uses (104.18.18.125 / 104.18.19.125:443). Herd 3 connections, Edge 21. Staff workaround on the closed thread: Settings, search HTTP/2, enable Disable HTTP/2, restart Cursor. Reboot clears orphan sockets.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hi @fred_campos, the quickest way to stop the buildup is to take Cursor off HTTP/2:

  1. Open Cursor Settings → Network.
  2. Set HTTP Compatibility Mode to HTTP/1.1.
  3. Fully quit Cursor (File → Exit, then check Task Manager that no Cursor processes are left) and start it again.

Agent, chat and Tab all keep working on HTTP/1.1, it’s just a bit slower. If you update Cursor later and the sockets start piling up again, check that this setting is still on HTTP/1.1.

The team is aware of HTTP/2 connections not being closed properly. One thing that would help us: next time the count is high, fully quit Cursor and rerun your Get-NetTCPConnection count for 104.18.18.125 / 104.18.19.125 before rebooting. Does it drop to zero, or do the orphaned sockets stay?