handy icon indicating copy to clipboard operation
handy copied to clipboard

Question about channel life cycle

Open hankai17 opened this issue 2 years ago • 1 comments

https://github.com/yedf2/handy/blob/c16cde9ae1c801ededf2555519bbab2af5496625/handy/poller.cc#L97 https://github.com/yedf2/handy/blob/c16cde9ae1c801ededf2555519bbab2af5496625/handy/conn.cc#L109 It seem's in channel's Callback delete channel.

hankai17 avatar Aug 13 '22 15:08 hankai17

Yes, if the data stream in the tcp connection has finished, then the channel should be closed and deleted

yedf2 avatar Aug 14 '22 00:08 yedf2