forked from lei.chen/myxce
vote_request_thread connects to peers via SSL. iomgr was started before election but c->ep was only registered with epoll inside cluster_start(), which runs after election. The TCP connect succeeded (kernel accepts it) but SSL_accept was never called server-side, so SSL_connect failed immediately — both vote threads went to deny in <1ms and ctrl-a could never win a quorum. Fix: add cluster_register_listener() that wires c->ep into iomgr's epoll watch. Call it from myapp_run() right after iomgr_start/vtaskmgr_start, before election. cluster_start() still calls iomgr_monitor again (idempotent via EPOLL_CTL_MOD). |
||
|---|---|---|
| .. | ||
| cluster.h | ||
| worker.h | ||