修正流式发送数据时,客户端异常断开后引起的段错误

This commit is contained in:
Lu Qiuwen
2018-10-18 16:57:53 +08:00
parent aa4629ca31
commit 529f7037ba
2 changed files with 59 additions and 15 deletions

View File

@@ -44,9 +44,6 @@ struct tfe_conn_private
evutil_socket_t fd;
struct bufferevent * bev;
uint8_t on_writing;
uint8_t closed;
uint8_t need_shutdown;
struct tfe_stream_write_ctx w_ctx;
};
struct tfe_stream_private
@@ -59,6 +56,8 @@ struct tfe_stream_private
struct tfe_thread_ctx * thread_ref;
enum tfe_stream_proto session_type;
struct tfe_stream_write_ctx * w_ctx_upstream;
struct tfe_stream_write_ctx * w_ctx_downstream;
struct tfe_conn_private * conn_upstream;
struct tfe_conn_private * conn_downstream;