high72%
Socket rewrites connection reuse can lead to a race condition and intermittent 500s
Next.js 16.3.x uses httpxy for rewrites with a shared keep-alive agent, which can reuse an idle socket at the same moment the upstream closes it, causing a race condition that intermittently returns 500 on the second socket connection.
