(err)
| 232 | } |
| 233 | |
| 234 | function onProxyError(err) { |
| 235 | debug('onProxyError', err); |
| 236 | cleanup(); |
| 237 | afterSocket(err, socket); |
| 238 | } |
| 239 | |
| 240 | // Read the headers from the chunks and check for the status code. If it fails we |
| 241 | // clean up the socket and return an error. Otherwise we establish the tunnel. |