#64 key keeper增加evdnsbase参数。
避免创建大量dnsbase,耗尽fd。ssl stream/tcp stream/proxy也做了相应修改。
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include "tfe_future.h"
|
||||
#include "event2/event.h"
|
||||
#include <event2/event.h>
|
||||
#include <event2/dns.h>
|
||||
|
||||
struct tfe_rpc_response_result{
|
||||
int status_code;
|
||||
@@ -24,4 +25,6 @@ enum TFE_RPC_METHOD
|
||||
|
||||
struct tfe_rpc_response_result* tfe_rpc_release(void* result);
|
||||
|
||||
void tfe_rpc_async_ask(struct future* f, const char* url, enum TFE_RPC_METHOD method, enum TFE_RPC_FLAG flag, const char* data, int data_len, struct event_base * evbase);
|
||||
void tfe_rpc_async_ask(struct future* f, const char* url, enum TFE_RPC_METHOD method, enum TFE_RPC_FLAG flag,
|
||||
const char* data, int data_len, struct event_base * evbase, struct evdns_base* dnsbase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user