REORG: connection: replace si_data_close() with conn_data_close()
This close function only applies to connection-specific parts and
the stream-interface entry may soon disappear. Move this to the
connection instead.
diff --git a/src/session.c b/src/session.c
index eca06d9..cca23a5 100644
--- a/src/session.c
+++ b/src/session.c
@@ -546,7 +546,7 @@
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);
diff --git a/src/sock_raw.c b/src/sock_raw.c
index a50d77a..39a962e 100644
--- a/src/sock_raw.c
+++ b/src/sock_raw.c
@@ -30,6 +30,7 @@
#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>
@@ -710,7 +711,7 @@
/* 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:
@@ -748,7 +749,7 @@
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;
diff --git a/src/stream_interface.c b/src/stream_interface.c
index cf26b51..030c7c1 100644
--- a/src/stream_interface.c
+++ b/src/stream_interface.c
@@ -27,6 +27,7 @@
#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>
@@ -230,7 +231,7 @@
si->state = SI_ST_DIS;
si->exp = TICK_ETERNITY;
- si_data_close(si);
+ conn_data_close(&si->conn);
if (si->release)
si->release(si);
}
@@ -267,7 +268,7 @@
si->state = SI_ST_DIS;
/* fall through */
- si_data_close(si);
+ conn_data_close(&si->conn);
if (si->release)
si->release(si);
default: