Comments (9)
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.
Which version of Node.js are you using?
Probably related to joyent/libuv#1278
from node-libcurl.
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.
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.
Thank you for the insight, but I recompiled with the settings in your gist and still encounter the crash.
from node-libcurl.
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.
@codehero can you check if this issue is fixed for you in the develop branch?
from node-libcurl.
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.
No problems! And thank you for your help.
from node-libcurl.
Related Issues (20)
- How can I write a custom request asynchronously? HOT 1
- [feat] rewrite `node-libcurl` with, the **ONLY** isomorphic way, napi HOT 1
- Curl Easy segmentation fault with requests to external site HOT 3
- Expected npx node-libcurl $URL to work as curl $URL HOT 1
- TypeError: Class extends value #<Object> is not a constructor or null HOT 1
- HTTP_CONTENT_DECODING = false but still decodes the server's responses HOT 1
- How to make multiple curly instances maintain separate connections to same host? HOT 2
- unable to npm install HOT 3
- npm install issues. HOT 5
- libcurl vuln HOT 2
- Add prebuilt binaries for nodejs 20 LTS HOT 13
- read raw msg HOT 3
- Does node-libcurl support res_init? HOT 1
- Error after upgrade to Node 20.10 ...: ERR_DLOPEN_FAILED HOT 2
- SFTP / SSH stuck on login when using Curl/Multi and password auth HOT 2
- Curly - Close connection - Timeout Exception HOT 3
- Cannot install HOT 3
- Send binary data with HTTPPOST option HOT 1
- Hanging on PROTOCONNECTING
- Add prebuilt binaries for node 21(macOS) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-libcurl.