We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d2c51 commit 40105beCopy full SHA for 40105be
src/middleware/web-incoming.ts
@@ -23,7 +23,9 @@ export const deleteLength = defineProxyMiddleware((req) => {
23
*/
24
export const timeout = defineProxyMiddleware((req, res, options) => {
25
if (options.timeout) {
26
- req.socket.setTimeout(options.timeout);
+ req.socket.setTimeout(options.timeout, () => {
27
+ req.socket.destroy();
28
+ });
29
}
30
});
31
0 commit comments