日志打印BUG
This commit is contained in:
5
cache/src/tango_cache_client.cpp
vendored
5
cache/src/tango_cache_client.cpp
vendored
@@ -770,6 +770,8 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase,
|
||||
|
||||
instance = (struct tango_cache_instance *)malloc(sizeof(struct tango_cache_instance));
|
||||
memset(instance, 0, sizeof(struct tango_cache_instance));
|
||||
instance->runtime_log = runtimelog;
|
||||
instance->evbase = evbase;
|
||||
|
||||
if(load_local_configure(instance, profile_path, section))
|
||||
{
|
||||
@@ -782,10 +784,7 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
instance->evbase = evbase;
|
||||
instance->multi_hd = curl_multi_init();
|
||||
instance->runtime_log = runtimelog;
|
||||
|
||||
curl_multi_setopt(instance->multi_hd, CURLMOPT_PIPELINING, CURLPIPE_HTTP1 | CURLPIPE_MULTIPLEX);
|
||||
curl_multi_setopt(instance->multi_hd, CURLMOPT_MAX_HOST_CONNECTIONS, instance->max_cnn_host);
|
||||
curl_multi_setopt(instance->multi_hd, CURLMOPT_SOCKETFUNCTION, curl_socket_function_cb);
|
||||
|
||||
Reference in New Issue
Block a user