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.