Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect release of connection with HTTP redirections #2

Open
kelson42 opened this issue Nov 10, 2013 · 1 comment
Open

Incorrect release of connection with HTTP redirections #2

kelson42 opened this issue Nov 10, 2013 · 1 comment
Labels

Comments

@kelson42
Copy link

Hope this bug report is a little bit less dummy like the last one...

As far as I can see, this code for example never ends (I never get the hand back from the terminal):
var request = require( 'request-enhanced' );

var url = 'http://parsoid.wmflabs.org/fa/%D8%A2%D8%B0%D8%B1_%D8%A8%DB%8C%DA%AF%D8%AF%D9%84%DB%8C';

request.get( {url: url , timeout: 60000} , function( error, body ) {
    if ( error ) {
        console.error( error );
    } else {
        console.log( body );
    }
});

Whereas if you use the following url, then it works:
var url = 'http://parsoid.wmflabs.org/fa/%D8%A2%D8%B0%D8%B1_%D8%A8%DB%8C%DA%AF%D8%AF%D9%84%DB%8C?oldid=9585495';

@geoffreak
Copy link
Owner

Very interesting. I'll have to look into this. It seems there's a rogue event loop somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants