Currently, _Channel.on_close() is called after the channel has been completely cleaned up. This means that it's impossible to access any channel-specific state (buffered data, addresses, filenos, etc.) in on_close() callbacks.
Consider altering the code to call on_close() before cleanup starts.
Currently, _Channel.on_close() is called after the channel has been completely cleaned up. This means that it's impossible to access any channel-specific state (buffered data, addresses, filenos, etc.) in on_close() callbacks.
Consider altering the code to call on_close() before cleanup starts.