Blocking connect. * * NOTE: This is implemented in order to simplify the transition to the abstract * connections, but should probably be refactored out of cluster.c and replication.c, * in favor of a pure async implementation. */
| 126 | * in favor of a pure async implementation. |
| 127 | */ |
| 128 | static inline int connBlockingConnect(connection *conn, const char *addr, int port, long long timeout) { |
| 129 | return conn->type->blocking_connect(conn, addr, port, timeout); |
| 130 | } |
| 131 | |
| 132 | /* Write to connection, behaves the same as write(2). |
| 133 | * |