Re: curl_easy_perform blocks when ifdown the ntwk interface

2018-11-12 Thread doa379 via curl-library
I have some C++ code which sends REST requests periodically. Here are some options that are set and then the curl_easy_perform call (a HEAD message is being sent): curl_easy_setopt(mhCurl, CURLOPT_HTTPHEADER, chunk); curl_easy_setopt(mhCurl, CURLOPT_URL, f_szUrl.c_str());

Re: Using multi-socket facility with epoll

2018-10-14 Thread doa379 via curl-library
What am I trying: I am writing a simple http client, and Im basing it on the multi-socket set of apis. I am using epoll as the main reactor (event loop). My code is *very* similar to the example in: https://curl.haxx.se/libcurl/c/ephiperfifo.html

Re: Microsoft is acquiring GitHub!

2018-06-04 Thread doa379
A private, for profit company is buying another private, for profit company. I really cannot grasp all this M$ is evil and will doom GH mantra. It's an anti-competitive measure on part of M$. Yet again. How about they create their own content platform as an alternative to GH? The material

Re: Microsoft is acquiring GitHub!

2018-06-04 Thread doa379
This is official now since this subject is the current github home page header. I'm really surprised I'm the first on this list to write about this subject. AFAIAC, my trust in this company is below zero on all points and I'll delete my account as soon as my (insignificant) projects are

Re: I'm awarded, for curl

2017-10-18 Thread doa379 via curl-library
Congratulations! I couldn't have picked a more worthy recipient for an award than this project. Well done, good job. On 18/10/17 09:35, Daniel Stenberg wrote: Hi friends! I've been awarded[1] the Swedish Polhemspriset (Polhem Prize) 2017, for curl. The details are in my blog post. I do

Re: Fwd: Multi-uv.c with custom class

2017-09-20 Thread doa379 via curl-library
I don't know about you but libuv is a more appropriate library to bring features such as asynchronisity to the C language. C++11 has many such features as well as ease of implementing an event loop already built natively. From my experience even in the case of implementing an aync app in C

Prioritising curlm transfers

2017-06-16 Thread doa379 via curl-library
Consider this scenario. There are multiple easy-handles added to a curlm handle for a simultaneous transfer over a limited number of connections. A simple problem: Is there a way to set a priority on an easy-handle so that when curlm handle performs it does so according to the priority of the

Re: The curl user survey 2017

2017-05-11 Thread doa379 via curl-library
I replied. Good job. On 11/05/17 22:19, Daniel Stenberg wrote: Hi all, Please consider spending a few minutes of your precious time on the curl user survey. We appreciate it! https://daniel.haxx.se/blog/2017/05/11/the-curl-user-survey-2017/ Thanks!

Re: Recovering from dropped connections with multi curl

2017-04-03 Thread doa379
-establish them everytime. -doa379 --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html

Re: cURL Write Data Buffer size

2017-03-16 Thread doa379
On 3/16/2017 3:16 PM, doa379 wrote: I'm using the API to fetch data and am using the WRITEDATA, WRITEFUNCTION options to handle it. Unfortunately I am finding that in some instances where the data is too long it gets separated in more than one call of the WRITEFUNCTION callback function

cURL Write Data Buffer size

2017-03-16 Thread doa379
I'm using the API to fetch data and am using the WRITEDATA, WRITEFUNCTION options to handle it. Unfortunately I am finding that in some instances where the data is too long it gets separated in more than one call of the WRITEFUNCTION callback function. At this point the application loses track

Re: Recovering from dropped connections with multi curl

2017-03-15 Thread doa379
The problem I am having is with dropped internet connections when this function is already running. In such situations I would like U = 0 so that the main loop ends and the function returns back to its origin. This isn't happening. Most of the time after the internet connection is dropped and

Re: Recovering from dropped connections with multi curl

2017-03-15 Thread doa379
The problem I am having is with dropped internet connections when this function is already running. In such situations I would like U = 0 so that the main loop ends and the function returns back to its origin. This isn't happening. Most of the time after the internet connection is dropped and

Re: Recovering from dropped connections with multi curl

2017-03-14 Thread doa379
The problem I am having is with dropped internet connections when this function is already running. In such situations I would like U = 0 so that the main loop ends and the function returns back to its origin. This isn't happening. Most of the time after the internet connection is dropped and

Recovering from dropped connections with multi curl

2017-03-14 Thread doa379
I am using multi curl to fetch a series of urls. This is following the 10-at-a-time prototype example. The problem I am having is with dropped internet connections when this function is already running. In such situations I would like U = 0 so that the main loop ends and the function returns

Re: Data retrieval is fragmented using Multi CURL Lib

2015-11-07 Thread doa379
I am using multi libcurl to download data from various sources. It's all working except for the issue that the data retrieved from the various sources is fragmented and jumbled. For example if you have this JSON data in any order: {{ JSON1 }, { JSON2 }, { JSON3 }} {{ JSON1 }, { JSON3 }, { JSON2

Re: Multithreaded use of libcurl

2015-09-22 Thread doa379
On 22/09/15 08:48, Aaron Meriwether wrote: On Sep 20, 2015, at 1:20 AM, Ray Satiro via curl-library <curl-library@cool.haxx.se> wrote: On 9/18/2015 6:47 AM, doa379 wrote: On 18/09/15 01:22, Aaron Meriwether wrote: On Sep 17, 2015, at 1:06 PM, doa379 <doa...@gmail.com> wro

Re: Multithreaded use of libcurl

2015-09-22 Thread doa379
On Sep 17, 2015, at 1:06 PM, doa379 <doa...@gmail.com> wrote: I think my issue has resolved itself by putting in a delay to some of the operations in the threads. If you use delays to "fix" a bug in a threaded program, you are doing it wrong, and the bug will almost certainly

Re: Multithreaded use of libcurl

2015-09-18 Thread doa379
On 18/09/15 01:22, Aaron Meriwether wrote: On Sep 17, 2015, at 1:06 PM, doa379 <doa...@gmail.com> wrote: I think my issue has resolved itself by putting in a delay to some of the operations in the threads. If you use delays to "fix" a bug in a threaded program, you ar

Re: Multithreaded use of libcurl

2015-09-17 Thread doa379
I'm trying to use libcurl in a distinct pthread but the process gets stuck in the callback function as the url works like a socket and is constantly giving out data: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callbackFunc); Why would it get stuck because of that? I would to implement a

Multithreaded use of libcurl

2015-09-14 Thread doa379
I'm trying to use libcurl in a distinct pthread but the process gets stuck in the callback function as the url works like a socket and is constantly giving out data: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callbackFunc); I would to implement a thread which allows to fork the libcurl