return 0;
}
-/** Tell a failed connection to move to CONNECTION_STATE_INIT
- *
- */
-connection_state_t connection_failed_reinit(UNUSED void *handle, UNUSED connection_state_t state, UNUSED void *uctx)
-{
- return CONNECTION_STATE_INIT;
-}
-
/** Close a connection if it's freed
*
* @param[in] conn to free.
* @{
*/
int connection_signal_on_fd(connection_t *conn, int fd);
-
-connection_state_t connection_failed_reinit(void *handle, connection_state_t state, void *uctx);
/** @} */
/** @name Allocate a new connection
conn = connection_alloc(ctx, el,
&(connection_funcs_t){
.init = _sql_connection_init,
- .failed = connection_failed_reinit,
.close = _sql_connection_close,
},
inst->config.trunk_conf.conn_conf,
conn = connection_alloc(ctx, el,
&(connection_funcs_t){
.init = _sql_connection_init,
- .failed = connection_failed_reinit,
.close = _sql_connection_close,
},
inst->config.trunk_conf.conn_conf,