}
/* completely close a conn_stream (but do not detach it) */
-static inline void cs_conn_close(struct conn_stream *cs)
+static inline void cs_conn_shut(struct conn_stream *cs)
{
cs_conn_shutw(cs, CO_SHW_SILENT);
cs_conn_shutr(cs, CO_SHR_RESET);
}
/* completely close a conn_stream after draining possibly pending data (but do not detach it) */
-static inline void cs_conn_drain_and_close(struct conn_stream *cs)
+static inline void cs_conn_drain_and_shut(struct conn_stream *cs)
{
cs_conn_shutw(cs, CO_SHW_SILENT);
cs_conn_shutr(cs, CO_SHR_DRAIN);
* handled ASAP. */
ret = -1;
if (conn) {
- cs_conn_drain_and_close(cs);
+ cs_conn_drain_and_shut(cs);
if (check->wait_list.events)
conn->mux->unsubscribe(cs, check->wait_list.events, &check->wait_list);
}
* as a failed response coupled with "observe layer7" caused the
* server state to be suddenly changed.
*/
- cs_conn_drain_and_close(cs);
+ cs_conn_drain_and_shut(cs);
}
if (cs) {
return;
if (cs_oc(cs)->flags & CF_SHUTW) {
- cs_conn_close(cs);
+ cs_conn_shut(cs);
cs->state = CS_ST_DIS;
__cs_strm(cs)->conn_exp = TICK_ETERNITY;
}
/* we may have to close a pending connection, and mark the
* response buffer as shutr
*/
- cs_conn_close(cs);
+ cs_conn_shut(cs);
/* fall through */
case CS_ST_CER:
case CS_ST_QUE:
do_close:
/* OK we completely close the socket here just as if we went through cs_shut[rw]() */
- cs_conn_close(cs);
+ cs_conn_shut(cs);
oc->flags &= ~CF_SHUTW_NOW;
oc->flags |= CF_SHUTW;