comfyui connecting reconnecting isuue when using iis as reverse proxy

 The image reveals a critical piece of information that changes the entire troubleshooting path: You are routing your traffic through Cloudflare (Server: cloudflare, CF-RAY: ...-SIN) before it ever hits your local Windows 11 IIS proxy (X-Powered-By: ARR/3.0). [1]

Your browser is sending the WebSocket request with compression enabled (Sec-WebSocket-Extensions: permessage-deflate), but IIS ARR 3.0 breaks when proxying compressed WebSockets over a third-party CDN like Cloudflare, leading to the instant connection crash and loop you are seeing. [1]
To completely solve this, you need to strip that specific WebSocket compression extension header so IIS and Cloudflare can talk cleanly.

The Fix: Force IIS to Strip WebSocket Compression Extensions
You need to use the URL Rewrite module on your Windows 11 IIS site to forcibly clear the HTTP_SEC_WEBSOCKET_EXTENSIONS variable. [1]
Step 1: Allow Server Variable Overrides in IIS
  1. Open IIS Manager.
  2. Click your main Windows 11 Server/Machine Name in the left column.
  3. In the center pane, double-click URL Rewrite.
  4. In the far-right Actions column, click View Server Variables....
  5. Click Add... on the right menu.
  6. Type exactly: HTTP_SEC_WEBSOCKET_EXTENSIONS and hit OK.
Step 2: Edit Your Reverse Proxy Inbound Rule
  1. Go back to the URL Rewrite screen by clicking "Back to Rules" in the top-right corner.
  2. Select your existing Reverse Proxy rule (the one handling the traffic going to ComfyUI) and click Edit... on the right.
  3. Scroll down and expand the Server Variables section.
  4. Click Add....
  5. Set Server variable name to: HTTP_SEC_WEBSOCKET_EXTENSIONS
  6. Set the Value to: (Leave this completely empty)
  7. Check the box for Replace existing value.
  8. Click OK.
Step 3: Apply and Reset
  1. In the far-right column, click Apply.
  2. Open a Command Prompt as Administrator and run iisreset to clear any hung proxy loops.










Comments

Popular posts from this blog

how to install internet download manger in linux

premium url shortener

ImportError: DLL load failed while importing onnx_cpp2py_export