*/
int conn_fd_handler(int fd);
+/* Calls the close() function of the data layer if any */
+static inline void conn_data_close(struct connection *conn)
+{
+ if (conn->data->close)
+ conn->data->close(conn);
+}
+
+
#endif /* _PROTO_CONNECTION_H */
/*
return si_ctrl(si)->connect(si);
}
-/* Calls the close() function of the data layer if any */
-static inline void si_data_close(struct stream_interface *si)
-{
- if (si->conn.data->close)
- si->conn.data->close(&si->conn);
-}
-
#endif /* _PROTO_STREAM_INTERFACE_H */
/*
si->flags &= ~SI_FL_CAP_SPLICE;
fd_delete(si_fd(si));
- si_data_close(si);
+ conn_data_close(&si->conn);
if (si->release)
si->release(si);
#include <common/time.h>
#include <proto/buffers.h>
+#include <proto/connection.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <proto/log.h>
/* we may have to close a pending connection, and mark the
* response buffer as shutr
*/
- si_data_close(si);
+ conn_data_close(&si->conn);
fd_delete(si_fd(si));
/* fall through */
case SI_ST_CER:
return;
if (si->ob->flags & BF_SHUTW) {
- si_data_close(si);
+ conn_data_close(&si->conn);
fd_delete(si_fd(si));
si->state = SI_ST_DIS;
si->exp = TICK_ETERNITY;
#include <common/time.h>
#include <proto/buffers.h>
+#include <proto/connection.h>
#include <proto/fd.h>
#include <proto/frontend.h>
#include <proto/sock_raw.h>
si->state = SI_ST_DIS;
si->exp = TICK_ETERNITY;
- si_data_close(si);
+ conn_data_close(&si->conn);
if (si->release)
si->release(si);
}
si->state = SI_ST_DIS;
/* fall through */
- si_data_close(si);
+ conn_data_close(&si->conn);
if (si->release)
si->release(si);
default: