()
| 25158 | destroyOnTimeout(socket); |
| 25159 | } |
| 25160 | function clearTimer() { |
| 25161 | if (self2._timeout) { |
| 25162 | clearTimeout(self2._timeout); |
| 25163 | self2._timeout = null; |
| 25164 | } |
| 25165 | self2.removeListener("abort", clearTimer); |
| 25166 | self2.removeListener("error", clearTimer); |
| 25167 | self2.removeListener("response", clearTimer); |
| 25168 | self2.removeListener("close", clearTimer); |
| 25169 | if (callback) { |
| 25170 | self2.removeListener("timeout", callback); |
| 25171 | } |
| 25172 | if (!self2.socket) { |
| 25173 | self2._currentRequest.removeListener("socket", startTimer); |
| 25174 | } |
| 25175 | } |
| 25176 | if (callback) { |
| 25177 | this.on("timeout", callback); |
| 25178 | } |
no test coverage detected
searching dependent graphs…