Created
September 6, 2018 07:19
-
-
Save devarajchidambaram/f61753e9edb0b042a0f4459a2ded7d70 to your computer and use it in GitHub Desktop.
Timeout express bound
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var srvr = http.createServer(function (req, res) { | |
setTimeout(function(){ | |
res.write('Hello World!'); | |
res.end(); | |
}, 5000) | |
}); | |
srvr.listen(8080); | |
console.log(srvr.timeout); | |
srvr.timeout = 2000; | |
console.log(srvr.timeout); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment