• zhenwei pi's avatar
    Introduce unix socket connection type · eb94d6d3
    zhenwei pi authored
    
    
    Unix socket uses different accept handler/create listener from TCP,
    to hide these difference to avoid hard code, use a new unix socket
    connection type. Also move 'acceptUnixHandler' into unix.c.
    
    Currently, the connection framework becomes like following:
    
                       uplayer
                          |
                   connection layer
                     /    |     \
                   TCP   Unix   TLS
    
    It's possible to build Unix socket support as a shared library, and
    load it dynamically. Because TCP and Unix socket don't require any
    heavy dependencies or overheads, we build them into Redis statically.
    Signed-off-by: default avatarzhenwei pi <pizhenwei@bytedance.com>
    eb94d6d3
Makefile 14.9 KB