Skip to content
MorvenH edited this page Mar 9, 2018 · 1 revision

Frequently Asked Questions

At any time, let's continue to update.

Q: I am using qingstor-sdk-cpp with https protocol. But I got request error (ssl error 35 in the log) after calling fork()?

I am making an https request (which got no error), forking and returning the parent process, and then making a second request (which got error) from the new process. If I remove the fork call or make an http request there are no errors.

  • A: The qingstor-sdk-cpp use libcurl to make https request. The problem you mentioned should be an issue of libcurl.
  • A: Someone in the libcurl mailing list mentioned that this is a common problem when calling fork after initializing libraries that need to be initialized. When you call QingStor::InitializeSDK, curl_global_init is invoked by default.
  • A: You should call QingStor::ShutdownSDK and reinit sdk in the new process after calling fork().