Is it safe to call `curl_global_init` before main()?

2017-04-12 Thread curl . greatwolf
Just a quick question and the title pretty much covers it. Is it okay to call `curl_global_init` and `curl_global_cleanup` before and after main() respectively? What I'd like to be able to do is perform the curl global state init using C++ class ctor/dtor and static global variables. eg.

Re: curl can not stop sending after it received FIN

2017-04-12 Thread Isaac Boukris via curl-library
On Apr 12, 2017 8:12 PM, "Gisle Vanem via curl-library" < curl-library@cool.haxx.se> wrote: Tanyaofeng wrote: 4.We found an issue: > > The file server was shut down during sending file data, the curl can’t > stop sending data after it received FIN from > Http Proxy Server until file data was

Re: Multipart POSTs with large bodies

2017-04-12 Thread Reese Grimsley via curl-library
Hopefully this helps clear up what I am trying to ask, here is an excerpt of the documentation I am referring to: "This event should be sent to AVS as a multipart message: the first part a JSON-formatted object, the second part binary audio captured by the microphone. We encourage streaming

Re: curl can not stop sending after it received FIN

2017-04-12 Thread Gisle Vanem via curl-library
Tanyaofeng wrote: 4.We found an issue: The file server was shut down during sending file data, the curl can’t stop sending data after it received FIN from Http Proxy Server until file data was sent finished. If this was a serious issue, it would have been fixed years ago. Use netstat (or