Comments (3)
Multi handles bring a lot of additional complexity. If it's just for interrupting, maybe we can use any of the callback functions? See http://curl.haxx.se/mail/lib-2010-09/0258.html
from curl.
Ifl R_CheckUserInterrupt()
is called directly inside R_curl_callback_progress
then the interrupt works during the connecting stage. The problem with this is that it leaves the handle in a ambiguous state and can leak memory because it skips over free(body.buf)
. However the pending_interrupt()
workaround doesn't seem to work in the connecting stage.
from curl.
In version 0.9.6 the curl_fetch_memory
and curl_fetch_disk
functions are not using curl_easy_perform
anymore but a custom non-blocking replacement curl_perform_with_interrupt
. This should be able to catch interruptions during any phase of the connection process.
There seems to be a little performance overhead but I can't figure out where it is coming from. Hopefully no other side effects.
from curl.
Related Issues (20)
- Differences between POSTing with the CLI curl (Bash) and the R curl package HOT 1
- can not install curl Rpackage HOT 1
- Error in curl::curl_fetch_memory(url, handle = handle) HOT 2
- Do discovered vulnerabilities in curl apply here? HOT 1
- Issues with postfieldsize in recent R curl versions
- 'Remote file not found' if SMB path has Unicode characters HOT 6
- Error in curl::handle_setopt(handle, .list = req$options): Option seekfunction (20167) has unknown or unsupported type. HOT 2
- form_data documentation is lacking
- parse_headers throws an error when a site responds with an empty header HOT 2
- Out of memory errors for libcurl ≥ 7.71.0 HOT 1
- FTP directory created successfuly, but curl returns with error HOT 3
- Feature request: Use environment variable `CURL_CA_BUNDLE` if set HOT 14
- inconsistent SSL version in vignette
- Allow users to pass pool object in `multi_download()`
- Use httpuv::randomPort() in curl_echo
- Why is curl_echo() slow sometimes HOT 2
- How to resolve "SSL: no alternative certificate subject name matches target host name '<proxy.server.address>'"
- httpuv delays in curl_echo on Linux HOT 1
- Can't get all bytes received before RST HOT 1
- installation warning: skipping pax global extended headers 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 curl.