NodeServer "antwortet" auf QuitMessage mit QuitMessage
Der NoderServer schickt beim Empfang einer QuitMessage{reason='REASON_SHUTTING_DOWN'}
selber eine QuitMessage{reasons='REASON_INTERNAL_REJECTION'}
ab. Das ist doppelt gemoppelt. Die 2. QuitMessage sollte nicht versendet werden.
Mir ist das Verhalten beim drasyl-Knoten in staging.env.drasy.org
aufgefallen:
root@sane-relay1:~# docker logs -f drasyl-3070-staging
2020-05-17 20:32:12,532 [nioEventLoopGroup-2-7] DEBUG o.d.p.c.handler.QuitMessageHandler - [a2de1af6]: received QuitMessage{reason='REASON_SHUTTING_DOWN', id='615844292ccae68ecde282f2', signature=null}. Close channel
2020-05-17 20:32:12,534 [nioEventLoopGroup-2-7] DEBUG o.d.p.connection.ConnectionsManager - Close and remove Connection 'NodeServerClientConnection [Identity{id=774caf2c50}/Channel:a2de1af6]' for Node 'Identity{id=774caf2c50}' for Reason 'REASON_INTERNAL_REJECTION'
2020-05-17 20:32:12,534 [nioEventLoopGroup-2-7] DEBUG o.d.p.c.s.NodeServerClientConnection - [a2de1af6]: The channel have been closed successfully.
Problem:
- Client schickt
QuitMessage{reason='REASON_SHUTTING_DOWN'}
- QuitMessageHandler schließt Channel
- closeFuture in NodeServerConnectionHandler schickt
QuitMessage{reasons='REASON_INTERNAL_REJECTION'}
Edited by bornholdt