| 6427 | return 1; |
| 6428 | } |
| 6429 | if (statusCode < 200) { |
| 6430 | return 1; |
| 6431 | } |
| 6432 | if (socket[kBlocking]) { |
| 6433 | socket[kBlocking] = false; |
| 6434 | client[kResume](); |
| 6435 | } |
| 6436 | return pause ? constants3.ERROR.PAUSED : 0; |
| 6437 | } |
| 6438 | onBody(buf) { |
| 6439 | const { client, socket, statusCode, maxResponseSize } = this; |
| 6440 | if (socket.destroyed) { |
| 6441 | return -1; |
| 6442 | } |
| 6443 | const request = client[kQueue][client[kRunningIdx]]; |
| 6444 | assert(request); |
| 6445 | assert(this.timeoutType === TIMEOUT_BODY); |
| 6446 | if (this.timeout) { |
| 6447 | if (this.timeout.refresh) { |