File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ $ npm install connect-timeout
21
21
middleware processing. See [ as top-level middleware] ( #as-top-level-middleware )
22
22
for how to use as a top-level middleware.
23
23
24
+ While the library will emit a 'timeout' event when requests exceed the given
25
+ timeout, node will continue processing the slow request until it terminates.
26
+ Slow requests will continue to use CPU and memory, even if you are returning
27
+ a HTTP response in the timeout callback. For better control over CPU/memory,
28
+ you may need to find the events that are taking a long time (3rd party HTTP
29
+ requests, disk I/O, database calls) and find a way to cancel them, and/or
30
+ close the attached sockets.
31
+
24
32
### timeout(time, [ options] )
25
33
26
34
Returns middleware that times out in ` time ` milliseconds. ` time ` can also
You can’t perform that action at this time.
0 commit comments