Next.js routes always responding with Connection: close
header
#51525
Unanswered
DamianEdwards
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm attempting to build an implementation of the TechEmpower Fortunes benchmark using Next.js 13.x and the App Router, but am running into an issue where the page route is always responding with a
Connection: close
header, drastically increasing the request latency as a new connection is required for each request. The app code is available here.I've tried running in standalone mode, setting the
KEEP_ALIVE_TIMEOUT
environment variable, using a custom server, running in Docker, etc. but nothing seems to change the result.I can reproduce this in a brand new Next.js app using
npx create-next-app@latest
on multiple machines.Additional information
Example
aspnet/Benchmarks#1866
Beta Was this translation helpful? Give feedback.
All reactions