Dynamic event loop binding for connection structure (#13642)
The IO thread has an independent event loop, so we can no longer
hard-code the event loop to the connection, instead, we should
dynamically select the event loop for the connection.
- configure the event loop during connection creation.
- add a new interface to allow dynamic event loop binding.
For TLS connection, we need to check for any pending data on the
connection and handle it accordingly when changing connection cross IO
thread and main thread. This commit doesn't handle it, @sundb will
overall support for TLS connection later.
---------
Co-authored-by:
debing.sun <debing.sun@redis.com>
Please register or sign in to comment