"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/proto/session.h" 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.

session.h  (haproxy-1.9.3):session.h  (haproxy-1.9.4)
skipping to change at line 131 skipping to change at line 131
static inline int session_check_idle_conn(struct session *sess, struct connectio n *conn) static inline int session_check_idle_conn(struct session *sess, struct connectio n *conn)
{ {
if (sess->idle_conns > sess->fe->max_out_conns) { if (sess->idle_conns > sess->fe->max_out_conns) {
/* We can't keep the connection, let's try to add it to the serve r idle list */ /* We can't keep the connection, let's try to add it to the serve r idle list */
session_unown_conn(sess, conn); session_unown_conn(sess, conn);
conn->owner = NULL; conn->owner = NULL;
if (!srv_add_to_idle_list(objt_server(conn->target), conn)) { if (!srv_add_to_idle_list(objt_server(conn->target), conn)) {
/* The server doesn't want it, let's kill the connection right away */ /* The server doesn't want it, let's kill the connection right away */
conn->mux->destroy(conn); conn->mux->destroy(conn);
return -1; return -1;
} } else
conn->flags &= ~CO_FL_SESS_IDLE;
return 1; return 1;
} else { } else {
conn->flags |= CO_FL_SESS_IDLE; conn->flags |= CO_FL_SESS_IDLE;
sess->idle_conns++; sess->idle_conns++;
} }
return 0; return 0;
} }
#endif /* _PROTO_SESSION_H */ #endif /* _PROTO_SESSION_H */
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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