# Fix handling of aborted requests in Vite middleware

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/9160cb24-7a56-4a3a-ac24-24b1197ce945
Source release or documentation date : 2026-10-21T14:37:36.000Z
Category : release | Developer impact : medium
Affected packages : @adonisjs/vite

Vite middleware in @adonisjs/vite version 6\.0\.4 now properly settles requests aborted by the client, such as when a browser closes a page while loading assets\. Previously, aborted requests could remain in flight indefinitely, potentially blocking process shutdown\. Additionally, requests passed on by Vite are no longer handled if the client connection is already closed\. A known limitation affects early Node 24 releases with pipelined HTTP/1\.1 requests\.

## What this means for your code

Developers using @adonisjs/vite may experience more reliable shutdowns and fewer hanging requests when clients abort requests\. No breaking changes or required code modifications are indicated\. Awareness of a Node\.js version limitation is advised\.

## Suggested actions

- Upgrade @adonisjs/vite to version 6\.0\.4 to benefit from the fix\.
- Test application behavior when clients abort requests, especially if using early Node 24 versions\.

## Original sources

- [Settle requests aborted while Vite serves them](https://github.com/adonisjs/vite/releases/tag/v6.0.4)

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.
