Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8679675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:02:07+00:00 2026-06-12T21:02:07+00:00

I’m using libcurl 7.26.0 in my C++ application to communicate with server by https

  • 0

I’m using libcurl 7.26.0 in my C++ application to communicate with server by https protocol. It works correctly but after ~20 minutes connection fails: curl_easy_perform returns CURLE_SSL_CACERT_BADFILE. I make curl_easy_cleanup of session then initialize it in the same way successfully but on curl_easy_perform it fails with the same error. Only restart of application helps.
I’ve checked that *.pem file is present on filesystem and access permissions of application were not changed during its run.

I’m using libcurl 7.26.0, Windows 7 x86, MSVC 2005.

Any help will be highly appreciated.

UPD: Problem reproduces only release mode.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:02:08+00:00Added an answer on June 12, 2026 at 9:02 pm

    I’m using cURL logging. It is turned on in this way:
    curl_easy_setopt(m_curl_session, CURLOPT_DEBUGFUNCTION, curl_debug_trace)
    At the beginning of the function curl_debug_trace log file is opened by fopen and at the end it is closed using fclose. In release mode for some reasons it does not close file and process runs to limit of opened files and cannot open cacert file.

    The solution is to fopen log file once and leave it opened untill program runs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application, and I'm currently using libcurl. The libcurl callback function works
Scenario: Im elstablishing a connection with an http server using libcurl and downlading a
I am using libcurl to create an http connection to a server. During initialization
I am trying to upload a file to a ftp server using libcurl but
I wrote multi-threaded FTP uploader on C#.NET using libcurl.NET. Everything works fine on my
I am making a c++ (windows devc++) application which downloads a file using libcurl.
I am using the Facebook API in a C++ application with libcurl . Logging
I'm using LibCurl (with SSL) to retrieve XML from an API. But it gives
Is there any other variants to send http/https request from C/C++ except using libCurl?
I'm using libcurl in a Win32 C++ application. I have the curllib.vcproj project added

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.