()
| 6144 | } else { |
| 6145 | this.timeout = setTimeout(onParserTimeout, delay, new WeakRef(this)); |
| 6146 | this.timeout.unref(); |
| 6147 | } |
| 6148 | } |
| 6149 | this.timeoutValue = delay; |
| 6150 | } else if (this.timeout) { |
| 6151 | if (this.timeout.refresh) { |
| 6152 | this.timeout.refresh(); |
| 6153 | } |
| 6154 | } |
| 6155 | this.timeoutType = type; |
| 6156 | } |
| 6157 | resume() { |
| 6158 | if (this.socket.destroyed || !this.paused) { |
| 6159 | return; |
| 6160 | } |
| 6161 | assert(this.ptr != null); |
| 6162 | assert(currentParser == null); |
| 6163 | this.llhttp.llhttp_resume(this.ptr); |
| 6164 | assert(this.timeoutType === TIMEOUT_BODY); |
| 6165 | if (this.timeout) { |
| 6166 | if (this.timeout.refresh) { |
| 6167 | this.timeout.refresh(); |
| 6168 | } |
| 6169 | } |
no test coverage detected