Skip to content

Commit

Permalink
remove timeout stuff.
Browse files Browse the repository at this point in the history
Its actually ok for connections to be idle...
  • Loading branch information
esatterwhite committed Jun 2, 2017
1 parent 49a10a3 commit 6f9a1f2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/tcp.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,11 @@ function getPool(addr, opts) {
let conn = net.connect(url.port, url.hostname)
conn.setNoDelay(true)
conn.setKeepAlive(true)
conn.setTimeout(2000)
conn.once('error', (err) => {
debug("destroying connection", err.message)
pool.destroy(conn).catch(()=>{})
connections.delete(addr)
})
conn.once('timeout', () => {
debug('connection timeout')
conn.end()
})
return conn
}
, destroy: (client, cb) => {
Expand Down

0 comments on commit 6f9a1f2

Please sign in to comment.