tcp_connection.c中在处理tcp连接关闭时,未关闭fd
int handle_connection_closed(struct tcp_connection *tcpConnection) {
struct event_loop *eventLoop = tcpConnection->eventLoop;
struct channel *channel = tcpConnection->channel;
event_loop_remove_channel_event(eventLoop, channel->fd, channel);
if (tcpConnection->connectionClosedCallBack != NULL) {
tcpConnection->connectionClosedCallBack(tcpConnection);
}
}
tcp_connection.c中在处理tcp连接关闭时,未关闭fd