Open jokemanfire opened 1 month ago
let conn = Connection::new(stream, delegate);
I think connection is client's member, the lifetime of connection should not above the client struct, if client is drop as well as conn should exit. If conn is lock may cause thread leak.
I am not sure, is not the fd closed by the Connection. If true, there is now a risk of a double close. If any fd is opened between two closes, it will be closed silently.
I am not sure, is not the fd closed by the Connection. If true, there is now a risk of a double close. If any fd is opened between two closes, it will be closed silently.
I check the connection , but there's no fd release, please check it again if i missed.
when just new a Client,the fd will increase. I also think the lifetime in async client is too long. also in sync #225 .
I obtained the following test code for this phenomenon: