为了识别第二种pinning:在tcp_stream的event callback中,若接收字节数为0,调用ssl_stream_process_zero_eof。
This commit is contained in:
@@ -48,6 +48,7 @@ struct tfe_conn_private
|
||||
struct bufferevent * bev;
|
||||
struct ev_token_bucket_cfg * ratelimit_bucket;
|
||||
uint8_t on_writing;
|
||||
size_t total_rx_bytes, total_tx_bytes;
|
||||
};
|
||||
|
||||
enum tfe_stream_event_log_type
|
||||
|
||||
@@ -24,6 +24,7 @@ struct ssl_mgr * ssl_manager_init(const char * ini_profile, const char * section
|
||||
void ssl_manager_set_new_upstream_cb(struct ssl_mgr * mgr, ssl_stream_new_hook* new_upstream_cb, void* u_para);
|
||||
void ssl_manager_destroy(struct ssl_mgr * mgr);
|
||||
unsigned long ssl_stream_log_error(struct bufferevent * bev, enum tfe_conn_dir dir, struct ssl_mgr* mgr);
|
||||
void ssl_stream_process_zero_eof(struct ssl_stream * s_stream, struct ssl_mgr* mgr);
|
||||
|
||||
|
||||
enum ssl_stream_action ssl_upstream_create_result_release_action(future_result_t * result);
|
||||
|
||||
Reference in New Issue
Block a user