GithubHelp home page GithubHelp logo

crashing on timeout about node-libcurl HOT 9 CLOSED

codehero avatar codehero commented on July 22, 2024
crashing on timeout

from node-libcurl.

Comments (9)

JCMais avatar JCMais commented on July 22, 2024 1

Do you have a code sample that I can use?

Check if the following crashes too, and post the output:

var Curl   = require( 'node-libcurl' ).Curl,
    util  = require( 'util' );

var curl = new Curl();

//http://stackoverflow.com/a/904609/710693
curl.setOpt( Curl.option.URL, "10.255.255.1" );
curl.setOpt( Curl.option.CONNECTTIMEOUT, 3 );

console.log( util.inspect( process.versions ) );
console.log( util.inspect( Curl.getVersion() ) );

curl.perform();

curl.on( 'error', function() {
    console.log( util.inspect( arguments ) );
    this.close();
});

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

Which version of Node.js are you using?

Probably related to joyent/libuv#1278

from node-libcurl.

codehero avatar codehero commented on July 22, 2024

I have tried versions 0.10.28, 0.10.29, 0.10.33; they all die the same way. In fact I have to use windbg to even get the call stack.

This issue is occurring at the actual time of close, even before retrying the connection.

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

From what I could check after some tests, apparently, it's a issue with the compiler optimizations which most of the time means there is something wrong with the code...
I will try to get a patch for that issue tomorrow. (for now, I will just disable the optimizations)

In the meantime you can change the files binding.gyp and deps\curl-for-windows\common.gypi to remove the compiler optimization and rebuild the module.

https://gist.github.com/JCMais/324bcb40395865ebcf2e

from node-libcurl.

codehero avatar codehero commented on July 22, 2024

Thank you for the insight, but I recompiled with the settings in your gist and still encounter the crash.

from node-libcurl.

codehero avatar codehero commented on July 22, 2024

This code sample crashes for me, with the following output

F:>node test.js
{ http_parser: '1.0',
node: '0.10.33',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.29',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1j' }
'libcurl/7.34.1-DEV OpenSSL/1.0.1e zlib/1.2.8 libssh2/1.4.3_DEV'

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

@codehero can you check if this issue is fixed for you in the develop branch?

from node-libcurl.

codehero avatar codehero commented on July 22, 2024

I'm afraid I've abandoned the use of node-libcurl in my application. I've no longer got the time to look at it, apologies. Good luck.

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

No problems! And thank you for your help.

from node-libcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.