Closed insinfo closed 1 year ago
Thanks for the report!
You seem to be using quite an old enough_mail version, please try updating to enough_mail: ^2.1.1
first.
When calling client.disconnect()
the following code is executed:
/// Disconnects from the service
Future<void> disconnect() async {
if (_isConnected) {
logApp('disconnecting');
isLoggedIn = false;
_isConnected = false;
isSocketClosingExpected = true;
try {
await _socketStreamSubscription.cancel();
} catch (e) {
print('unable to cancel subscription $e');
}
try {
await _socket.close();
} catch (e) {
print('unable to close socket $e');
}
}
}
Is there something additional that should be done to clean up sockets?
assuming to be not relevant anymore
looks like "enough_mail" is keeping sockets open I have seen a backlog of connections in state (CLOSE_WAIT)