Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't destroy non-existent sockets

  • Loading branch information...
commit 1fbd6a021e7d4cddcf89ece10117f8fd8f51e11e 1 parent 74cf69f
@isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  site.js
View
2  site.js
@@ -28,7 +28,7 @@ function site (req, res) {
var er = new Error('Request timed out')
res.error(500, er)
setTimeout(function () {
- res.socket.destroy()
+ if (res.connection) res.connection.destroy()
throw er
}, 5000)
}, 30*1000) // nothing should take 30s ever.
Please sign in to comment.
Something went wrong with that request. Please try again.