• Yuan Wang's avatar
    Dynamic event loop binding for connection structure (#13642) · 779af3ab
    Yuan Wang authored
    
    
    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: default avatardebing.sun <debing.sun@redis.com>
    779af3ab
unix.c 6.92 KB