(socket)
| 25148 | socket.addListener("timeout", socket.destroy); |
| 25149 | } |
| 25150 | function startTimer(socket) { |
| 25151 | if (self2._timeout) { |
| 25152 | clearTimeout(self2._timeout); |
| 25153 | } |
| 25154 | self2._timeout = setTimeout(function() { |
| 25155 | self2.emit("timeout"); |
| 25156 | clearTimer(); |
| 25157 | }, msecs); |
| 25158 | destroyOnTimeout(socket); |
| 25159 | } |
| 25160 | function clearTimer() { |
| 25161 | if (self2._timeout) { |
| 25162 | clearTimeout(self2._timeout); |
no test coverage detected
searching dependent graphs…