Skip to content

Commit f740111

Browse files
authored
Merge pull request #22 from irenemherrero/patch-1
Allow request timeout modification in server
2 parents 8b51cc1 + 304bbb7 commit f740111

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = function(options) {
3030
function start(cb) {
3131
logger.info(format('Starting server on %s:%d', config.host, config.port))
3232
server = app.listen(config.port, config.host, cb)
33+
config.hasOwnProperty('requestTimeout') && (server.requestTimeout = config.requestTimeout)
3334
enableDestroy(server)
3435
}
3536

0 commit comments

Comments
 (0)