MCPcopy Index your code
hub / github.com/github/docs / haltOnDroppedConnection

Function haltOnDroppedConnection

middleware/halt-on-dropped-connection.js:8–13  ·  view source on GitHub ↗
(req, res, next)

Source from the content-addressed store, hash-verified

6}
7
8export function haltOnDroppedConnection(req, res, next) {
9 // Only proceed if the flag has not been set for the express-timeout-handler middleware
10 if (!isConnectionDropped(req, res)) {
11 return next()
12 }
13}
14
15// Export this logic, too
16haltOnDroppedConnection.isConnectionDropped = isConnectionDropped

Callers

nothing calls this directly

Calls 2

isConnectionDroppedFunction · 0.85
nextFunction · 0.50

Tested by

no test coverage detected