Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

The HTTPS client hates the abort() call #1304

Closed
SaltwaterC opened this issue Jul 11, 2011 · 0 comments
Closed

The HTTPS client hates the abort() call #1304

SaltwaterC opened this issue Jul 11, 2011 · 0 comments
Labels

Comments

@SaltwaterC
Copy link

The HTTP example:

var http = require('http');

var options = {
    host: 'www.google.com',
    path: '/'
};
var request = http.request(options, function (response) {});

request.abort();

Nothing happens. As it should. But as soon as the connection switches to HTTPS:

var https = require('https');

var options = {
    host: 'encrypted.google.com',
    path: '/'
};
var request = https.request(options, function (response) {});

request.abort();

the tls module crashes with:

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Cannot call method 'start' of null
    at Array. (tls.js:499:14)
    at EventEmitter._tickCallback (node.js:126:26)

Ouch!

koichik added a commit that referenced this issue Jul 14, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants