Share via

IIS abruptly closes TCP connection when receiving a request with "Connection: close" header

Laurens PLUMET 30 Reputation points
2026-03-13T06:41:01.16+00:00

Yesterday I've updated Windows on my pc, I assume my IIS webserver also must have been updated. Before the update I could send requests to my IIS webserver with the "Connection: close" header and it would behave fine. Now it seems to abruptly close the connection (with an RST). The version of my IIS webserver is 10.0.26100.1.

I can easily reproduce this behavior with the following curl command: curl -v --http1.1 -H "Connection: close" http://localhost/.

Without the "Connection: close" header everything works as expected.

Some extra info, the site handling the request is an ASP.NET application using the DefaultAppPool with its original settings.

What could I possibly do to solve this issue?

Kind regards

Laurens

Windows development | Internet Information Services

Answer accepted by question author

  1. Tom Tran (WICLOUD CORPORATION) 4,860 Reputation points Microsoft External Staff Moderator
    2026-03-13T09:42:51.7+00:00

    Hi @Laurens PLUMET,

    Thanks for checking that.

    Your explanation makes sense. If the connection is already closed and IIS later tries to send the response, the trace can show BytesSent="0" with an error like 0x80070005. In this situation it usually just means IIS attempted to write to a connection that was already closed.

    From your trace, we can see the request reaches IIS, the StaticFile handler is selected, and the request completes with 200. However, BytesSent="0" indicates the connection closed before IIS could send the response.

    Since the request works normally without the Connection: close header, the IIS pipeline itself appears to be working correctly. The connection may be getting reset at the HTTP.sys / networking layer instead.

    Could you please check whether anything appears in the HTTP.sys logs when the reset happens?

    C:\Windows\System32\LogFiles\HTTPERR
    

    If the machine is managed by your IT department, it would be great to confirm which Windows updates are installed. Some Windows 11 24H2 updates introduced issues in HTTP.sys that caused localhost/IIS connections to reset unexpectedly.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-13T06:41:14.6666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The behavior matches a known issue introduced by a recent Windows Server 2025 / Windows 11 Server build security update that affects HTTP.sys. After the October security update, server-side applications that rely on HTTP.sys (including IIS 10) can have problems handling incoming connections, which can surface as IIS sites failing to load or connections being reset (RST) under certain conditions. A request with Connection: close is one of the patterns that can trigger the faulty behavior.

    The issue is specifically called out for OS build 26100.x, which matches the IIS version 10.0.26100.1 in use. Microsoft has released an out-of-band update and then a subsequent cumulative update that address HTTP.sys/IIS connection problems.

    To resolve the problem:

    1. Open Settings → Windows Update on the affected machine.
    2. Select Check for updates and install all available updates.
    3. Restart the machine, even if no new updates appear to be installed.

    If the problematic October security update is present, ensure that the later update containing the fix is installed. The documented fix for the HTTP.sys/IIS connection issue is included in a later cumulative update (KB5068861 for the affected OS build).

    After applying the latest cumulative update and rebooting, IIS should stop resetting connections when handling requests that include Connection: close.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.