express-timeout | Handles request timeout and sockets for express.js | Socket library
kandi X-RAY | express-timeout Summary
kandi X-RAY | express-timeout Summary
Handles request timeout and sockets for express.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of express-timeout
express-timeout Key Features
express-timeout Examples and Code Snippets
Community Discussions
Trending Discussions on express-timeout
QUESTION
I'm having a little problem with thread blocking algorithms.
I have a route that generates a zip with huge size files.
The flow works like this: GetUrls > ObtainHugeSizeBuffer > GenerateZIP > UploadZIPToCloud
I cannot modify the timeout response default time of 2 minutes with the express-timeout
module. I've also been trying to break the loopholes in the .nextTick()
function.
I've even tried to look over queueing but I don't think that applies in this situation.
Do you guys have any idea how to expand the response time? - I strictly need to for one route only.
...ANSWER
Answered 2017-Oct-30 at 10:36// start the server
const server = app.listen(8080);
// increase the timeout to 4 minutes
server.timeout = 240000;
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install express-timeout
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page