修正http解析层和业务层的若干bug。
This commit is contained in:
@@ -80,7 +80,7 @@ static inline bool __is_ssl(struct tfe_stream_private * _stream)
|
||||
return (_stream->session_type == STREAM_PROTO_SSL);
|
||||
}
|
||||
|
||||
static void __call_plugin_close(struct tfe_stream_private * _stream)
|
||||
static void call_plugin_close(struct tfe_stream_private * _stream)
|
||||
{
|
||||
unsigned int plugin_id_iter = 0;
|
||||
unsigned int plugin_id = 0;
|
||||
@@ -373,7 +373,7 @@ static void __stream_bev_passthrough_writecb(struct bufferevent * bev, void * ar
|
||||
|
||||
if (*ref_peer_conn == NULL && *ref_this_conn == NULL)
|
||||
{
|
||||
__call_plugin_close(_stream);
|
||||
call_plugin_close(_stream);
|
||||
tfe_stream_destory(_stream);
|
||||
}
|
||||
|
||||
@@ -431,7 +431,7 @@ __close_connection:
|
||||
|
||||
if (*ref_this_conn == NULL && *ref_peer_conn == NULL)
|
||||
{
|
||||
__call_plugin_close(_stream);
|
||||
call_plugin_close(_stream);
|
||||
tfe_stream_destory(_stream);
|
||||
}
|
||||
|
||||
@@ -593,7 +593,7 @@ static void __stream_bev_writecb(struct bufferevent * bev, void * arg)
|
||||
|
||||
if (*ref_peer_conn == NULL && *ref_this_conn == NULL)
|
||||
{
|
||||
__call_plugin_close(_stream);
|
||||
call_plugin_close(_stream);
|
||||
tfe_stream_destory(_stream);
|
||||
}
|
||||
|
||||
@@ -678,6 +678,7 @@ __close_connection:
|
||||
return;
|
||||
|
||||
__call_plugin_close:
|
||||
call_plugin_close(_stream);
|
||||
tfe_stream_destory(_stream);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user