apache / dubbo-getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
218 stars 69 forks source link

Adding session whitelists #122

Open snac21 opened 1 month ago

snac21 commented 1 month ago

What would you like to be added: withlists of hearbeat

Why is this needed: We need to register the getty server to the Consul registry and establish heartbeat checks between the getty server and Consul. However, we haven't found a way to whitelist specific heartbeat checks.

Whitelisting in OnOpen works for heartbeat checks, but not with TCP SSL: While whitelisting in the OnOpen method allows heartbeat checks to function, enabling TCP SSL causes issues. Since Consul initiates heartbeats without SSL, heartbeat checks fail in this scenario.

Could we add a whitelist feature to address this issue?