(client, socket)
| 7107 | if (contentLength !== null && bytesWritten !== contentLength) { |
| 7108 | if (client[kStrictContentLength]) { |
| 7109 | throw new RequestContentLengthMismatchError(); |
| 7110 | } else { |
| 7111 | process.emitWarning(new RequestContentLengthMismatchError()); |
| 7112 | } |
| 7113 | } |
| 7114 | if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) { |
| 7115 | if (socket[kParser].timeout.refresh) { |
| 7116 | socket[kParser].timeout.refresh(); |
| 7117 | } |
| 7118 | } |
| 7119 | client[kResume](); |
| 7120 | } |
| 7121 | destroy(err) { |
| 7122 | const { socket, client, abort } = this; |
| 7123 | socket[kWriting] = false; |
| 7124 | if (err) { |
| 7125 | assert(client[kRunning] <= 1, "pipeline should only contain this request"); |
| 7126 | abort(err); |
| 7127 | } |
| 7128 | } |
| 7129 | }; |
| 7130 | module.exports = connectH1; |
| 7131 | } |
| 7132 | }); |
| 7133 | |
| 7134 | // |
| 7135 | var require_client_h2 = __commonJS({ |
| 7136 | ""(exports, module) { |
| 7137 | "use strict"; |
| 7138 | var assert = __require("assert"); |
| 7139 | var { errorMonitor } = __require("events"); |
| 7140 | var { pipeline } = __require("stream"); |
| 7141 | var util = require_util(); |
| 7142 | var { |
| 7143 | RequestContentLengthMismatchError, |
| 7144 | RequestAbortedError, |
| 7145 | SocketError, |
| 7146 | InformationalError |
| 7147 | } = require_errors(); |
| 7148 | var { |
| 7149 | kUrl, |
| 7150 | kReset, |
| 7151 | kClient, |
| 7152 | kRunning, |
| 7153 | kPending, |
| 7154 | kQueue, |
| 7155 | kPendingIdx, |
| 7156 | kRunningIdx, |
| 7157 | kError, |
| 7158 | kSocket, |
| 7159 | kStrictContentLength, |
| 7160 | kOnError, |
| 7161 | kMaxConcurrentStreams, |
| 7162 | kHTTP2Session, |
| 7163 | kResume, |
| 7164 | kSize, |
| 7165 | kHTTPContext |
| 7166 | } = require_symbols(); |
no test coverage detected