gnet icon indicating copy to clipboard operation
gnet copied to clipboard

Connection migration to other server seemlessly.

Open chikilov opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. I am using gnet framework with 30k clients. And use aws codedeploy (blue/green). When I deploy new version of source all connection close and reconnect to new server at once. It might be cause a kind of performance issue. So I try to use onShutdown event, Unfortunately, it fires after all connection closed.

Describe the solution you'd like Can you make a new event type just before start shut down?

Describe alternatives you've considered

Additional context

chikilov avatar Feb 25 '22 07:02 chikilov

Sorry, still not so clear about your requirement here, could you describe it step by step and share more details?

panjf2000 avatar Feb 25 '22 10:02 panjf2000

Just I want another event which is fire when server shutdown.(before client connections close).

Sorry for late reply.

chikilov avatar Apr 21 '22 03:04 chikilov

Let me see what I can do.

panjf2000 avatar Apr 24 '22 01:04 panjf2000