async forceClose(err) { if (this._closed) { return; } this._lastError = err; this._cleanRequest(err); this._session.destroy(); await this.await('close'); }
assertResponse(t, req, fs.readFileSync(__filename).toString()) req.resume() req.on('end', () => client.destroy()) req.end() })
assertResponse(t, req, 'foo') req.resume() req.on('end', () => client.destroy()) req.end() })
assertResponse(t, req, fs.readFileSync(__filename).toString()) req.resume() req.on('end', () => client.destroy()) req.end() })
assertResponse(t, req, 'foo') req.resume() req.on('end', () => client.destroy()) req.end() })