Execption safe

2018-02-01 Thread surya chandrika
Hi All, Kindly let me know whether we have to handle any exception while using libcurl library functions to make our application exception safe . Will libcurl throw any exception in corner cases. if yes ,so how do we handle that. Regards, Surya

curl_easy_getinfo return codes

2018-02-07 Thread surya chandrika
Hi All, While trying to read response of a multiperform. res = curl_easy_getinfo( e, CURLINFO_RESPONSE_CODE, _code ) if curl_easy_getinfo returns a value res != CURLE_OK, Please let me know 1. Should i re-try this request. 2. Drop this request. Would the error code returned by this

Max number of easy handles in a multi handle

2018-02-27 Thread surya chandrika
Hi All, Please let me know if there is any max limit on the number of easy handles that can be added to a multi handle. Thanks, Surya --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette:

crash while trying to log.

2018-04-10 Thread surya chandrika
HI All, Yesterday we faced an issue. for our application when socket logging was enabled. In debug build (when compiled with -g option) our application worked fine. When we released the application in released mode (without -g option), application crashes while trying to wrtie socket logs. res =

Re: crash issue: while invoking easy perform.

2018-03-04 Thread surya chandrika
in curl_multi_perform () from /lib64/libcurl.so.4 #17 0x7f0ca8523895 in curl_easy_perform () from /lib64/libcurl.so.4 On Mon, Mar 5, 2018 at 4:09 AM, Daniel Stenberg <dan...@haxx.se> wrote: > On Sat, 3 Mar 2018, surya chandrika wrote: > > acc to logic only curl_easy_per

Re: crash issue: while invoking easy perform.

2018-03-05 Thread surya chandrika
for an application. along with that also updated ssl_certificate and ssl_certificate_key and update-ca-trust as i saw curl 35 error code. On Mon, Mar 5, 2018 at 3:38 PM, Daniel Stenberg <dan...@haxx.se> wrote: > On Mon, 5 Mar 2018, surya chandrika wrote: > > (gdb) bt >> #

crash issue: while invoking easy perform.

2018-03-02 Thread surya chandrika
Am getting following crash issue: BT: #0 0x7f5a2c4344ab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 #1 0x7f5a310b4582 in skgesigOSCrash () from /usr/lib/oracle/12.2/client64/lib/libclntsh.so.12.1 #2 0x7f5a316d48a5 in kpeDbgSignalHandler () from

Libcurl handles and file descriptors and select

2017-10-12 Thread surya chandrika via curl-library
Hi, Am new into libcurl world, please clarify the below queries: -> When is the file descriptors actually associated with a handle. -> Is there any limitation in the number of handles that can be created by a process. Requirement: Need to post messages received in a message queue to a remote

Re: curl handles and multi thread

2017-11-21 Thread surya chandrika via curl-library
assume threads should not be blocking except for the select()/timeout in thread_b. Please share your thoughts for the same. Thanks Surya On Sat, Nov 11, 2017 at 3:52 AM, Daniel Stenberg <dan...@haxx.se> wrote: > On Wed, 8 Nov 2017, surya chandrika via curl-library wrote: > >

curl handles and multi thread

2017-11-08 Thread surya chandrika via curl-library
Hi all, >From this link it says https://curl.haxx.se/libcurl/c/threadsafe.html You must never share the same handle in multiple threads. You can pass the handles around among threads, but you must never use a single handle from more than one thread at any given time. Usecase: (cpp) 1. Get a

curl multi perform when remote host is down

2018-01-09 Thread surya chandrika via curl-library
Hi All, I am using curl multi perform . I have added about 10 easy handles to post to 10 different host. I would like to know that if few of the host is not reachable will it affect the performance or response time of other request. I assume it should not as they are parallel processing. Please

open ssl vs gnutls used along with libcurl

2018-10-05 Thread surya chandrika via curl-library
Hi All, There is a weird memory leak in my program. Valgrind shows: 1. We have a usecase within program which uses gnu encrypt decrypt function, and it reports leaks. ==57842== 775 (152 direct, 623 indirect) bytes in 1 blocks are definitely lost in loss record 2,287 of 2,663 ==57842==at

Re: open ssl vs gnutls used along with libcurl

2018-10-05 Thread surya chandrika via curl-library
Daniel Stenberg wrote: > On Fri, 5 Oct 2018, surya chandrika via curl-library wrote: > > > We have a usecase within program which uses gnu encrypt decrypt function, > > and it reports leaks. > > > > So i was searching a bit about gnu and found this link, where it states

Re: open ssl vs gnutls used along with libcurl

2018-10-05 Thread surya chandrika via curl-library
basically fetch information from one host and pushes to another host. Valgrind doesnt show much leak in program itself and that why looking out other possibilities. Thanks Surya On Fri, Oct 5, 2018 at 4:48 PM Daniel Stenberg wrote: > On Fri, 5 Oct 2018, surya chandrika via curl-library wr

Crash while using multi handle

2019-04-09 Thread surya chandrika via curl-library
HI Libcurl I observed below crash issue: Usecase; Have configured multiple threads (to divided external interfaces logically), each has got its own multi handle (each multi handles have curl easy handles ) which is used to post request to different host. Initially i had only 2 threads with each

Re: create rpm for libcurl

2019-05-22 Thread surya chandrika via curl-library
On Mon, May 20, 2019 at 3:55 PM Kamil Dudka wrote: > On Monday, May 20, 2019 12:15:32 PM CEST surya chandrika wrote: > > On Wed, May 15, 2019 at 5:49 PM Kamil Dudka wrote: > > > Why do not you use the %configure macro as in the mentioned spec file? > > > It shou

Re: create rpm for libcurl

2019-05-23 Thread surya chandrika via curl-library
On Wed, May 22, 2019 at 5:12 PM Kamil Dudka wrote: > On Wednesday, May 22, 2019 1:20:01 PM CEST surya chandrika wrote: > > On Mon, May 20, 2019 at 3:55 PM Kamil Dudka wrote: > > > On Monday, May 20, 2019 12:15:32 PM CEST surya chandrika wrote: > > > > On Wed, May 1

Re: create rpm for libcurl

2019-05-20 Thread surya chandrika via curl-library
On Wed, May 15, 2019 at 5:49 PM Kamil Dudka wrote: > On Wednesday, May 15, 2019 1:26:29 PM CEST surya chandrika wrote: > > On Mon, May 13, 2019 at 1:49 PM Kamil Dudka wrote: > > > On Sunday, May 12, 2019 7:45:28 PM CEST surya chandrika via > curl-library > > > &g

Re: php curl insecure connection option is skipped

2019-05-10 Thread surya chandrika via curl-library
TED CERTIFICATE I added a self signed certificate for this host. Could that be a reason? On Wed, May 8, 2019 at 11:48 AM Ray Satiro via curl-library < curl-library@cool.haxx.se> wrote: > On 5/8/2019 12:32 AM, surya chandrika wrote: > > Disabling CURLOPT_SSL_VERIFYHOST worke

create rpm for libcurl

2019-05-10 Thread surya chandrika via curl-library
Hi All, Am trying to create rpm for libcurl version 7.64.0 using rpm build. Am trying to write SPEC file for the same. Please let me know what would be the correct value for Group: License: section is spec file. Thanks Surya ---

Re: create rpm for libcurl

2019-05-15 Thread surya chandrika via curl-library
On Mon, May 13, 2019 at 1:49 PM Kamil Dudka wrote: > On Sunday, May 12, 2019 7:45:28 PM CEST surya chandrika via curl-library > wrote: > > On Fri, May 10, 2019 at 7:11 PM Kamil Dudka wrote: > > > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via > curl-l

Re: create rpm for libcurl

2019-05-12 Thread surya chandrika via curl-library
On Fri, May 10, 2019 at 7:11 PM Kamil Dudka wrote: > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via curl-library > wrote: > > Hi All, > > > > Am trying to create rpm for libcurl version 7.64.0 using rpm build. > > Am trying to write SPEC file for th

php curl insecure connection option is skipped

2019-05-07 Thread surya chandrika via curl-library
Hi, There a php script which tries to push data to destination host . Looks like after curl update in-secure option is not working. a self sign certificate with CN as the destination host was copied to /etc/pki/ca-trust/source/anchors/ and ran update-ca-trust the following option is also set

Re: php curl insecure connection option is skipped

2019-05-07 Thread surya chandrika via curl-library
59 AM Ray Satiro via curl-library < curl-library@cool.haxx.se> wrote: > On 5/7/2019 1:14 PM, surya chandrika via curl-library wrote: > > There a php script which tries to push data to?? destination host?? . > Looks like after curl update in-secure option is not working. > a sel

Re: Occasionally facing connection issues with NSS

2019-04-26 Thread surya chandrika via curl-library
, 2019 at 4:00 PM Kamil Dudka wrote: > On Friday, April 26, 2019 7:08:52 AM CEST surya chandrika via curl-library > wrote: > > I am occasionally seeing "Unable to initialize NSS database" log during > my > > curl call initialization from my CPP module using libcurl

Re: Occasionally facing connection issues with NSS

2019-04-26 Thread surya chandrika via curl-library
at 4:00 PM Kamil Dudka wrote: > On Friday, April 26, 2019 7:08:52 AM CEST surya chandrika via curl-library > wrote: > > I am occasionally seeing "Unable to initialize NSS database" log during > my > > curl call initialization from my CPP module using libcurl and at

Re: Occasionally facing connection issues with NSS

2019-04-26 Thread surya chandrika via curl-library
On Fri, Apr 26, 2019 at 5:19 PM surya chandrika wrote: > The verbose output does not include any information about the reason why > NSS > failed to initialize. Could you please rebuild libcurl with the following > patch and capture the verbose output again? > > https://github.

Occasionally facing connection issues with NSS

2019-04-25 Thread surya chandrika via curl-library
I am occasionally seeing "Unable to initialize NSS database" log during my curl call initialization from my CPP module using libcurl and at that time, my curl calls are not working. *Note:* only at certain times , else is works properly without any changes in system Please find the logs in