"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/peers.c" between
haproxy-1.9.3.tar.gz and haproxy-1.9.4.tar.gz

About: HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.

peers.c  (haproxy-1.9.3):peers.c  (haproxy-1.9.4)
skipping to change at line 1993 skipping to change at line 1993
if (unlikely((conn = conn_new()) == NULL)) if (unlikely((conn = conn_new()) == NULL))
goto out_free_strm; goto out_free_strm;
if (unlikely((cs = cs_new(conn)) == NULL)) if (unlikely((cs = cs_new(conn)) == NULL))
goto out_free_conn; goto out_free_conn;
conn->target = s->target = &s->be->obj_type; conn->target = s->target = &s->be->obj_type;
memcpy(&conn->addr.to, &peer->addr, sizeof(conn->addr.to)); memcpy(&conn->addr.to, &peer->addr, sizeof(conn->addr.to));
conn_prepare(conn, peer->proto, peer->xprt); conn_prepare(conn, peer->proto, peer->xprt);
conn_install_mux(conn, &mux_pt_ops, cs, s->be, NULL); if (conn_install_mux(conn, &mux_pt_ops, cs, s->be, NULL) < 0)
goto out_free_cs;
si_attach_cs(&s->si[1], cs); si_attach_cs(&s->si[1], cs);
s->do_log = NULL; s->do_log = NULL;
s->uniq_id = 0; s->uniq_id = 0;
s->res.flags |= CF_READ_DONTWAIT; s->res.flags |= CF_READ_DONTWAIT;
peer->appctx = appctx; peer->appctx = appctx;
task_wakeup(s->task, TASK_WOKEN_INIT); task_wakeup(s->task, TASK_WOKEN_INIT);
HA_ATOMIC_ADD(&active_peers, 1); HA_ATOMIC_ADD(&active_peers, 1);
return appctx; return appctx;
/* Error unrolling */ /* Error unrolling */
out_free_cs:
cs_free(cs);
out_free_conn: out_free_conn:
conn_free(conn); conn_free(conn);
out_free_strm: out_free_strm:
LIST_DEL(&s->list); LIST_DEL(&s->list);
pool_free(pool_head_stream, s); pool_free(pool_head_stream, s);
out_free_sess: out_free_sess:
session_free(sess); session_free(sess);
out_free_appctx: out_free_appctx:
appctx_free(appctx); appctx_free(appctx);
out_close: out_close:
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)