Skip to content

Commit

Permalink
set socket timeout to big number
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 17, 2014
1 parent 7712e68 commit 14aada7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function WebTorrent (opts) {
if (opts.port !== false) {
// start http server
self.server = http.createServer()
self.server.on('connection', function (socket) {
socket.setTimeout(36000000)
})
self.server.on('request', self._onRequest.bind(self))
self.server.listen(opts.port)
self.server.once('listening', function () {
Expand Down

0 comments on commit 14aada7

Please sign in to comment.