summaryrefslogtreecommitdiff
path: root/ecp
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-04-21 19:39:08 +0200
committerUros Majstorovic <majstor@majstor.org>2024-04-21 19:39:08 +0200
commit65950182afb58a8bc41368e561ff9d1676660681 (patch)
treece72337f71632e9d1d62305b6f5ffcccd6104a79 /ecp
parent146115f0676ccf1e917f28b14a0c113a569b07bc (diff)
added gc flag for inbound connections
Diffstat (limited to 'ecp')
-rw-r--r--ecp/test/init.c5
-rw-r--r--ecp/test/init_vconn.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/ecp/test/init.c b/ecp/test/init.c
index b0d91d1..069aad3 100644
--- a/ecp/test/init.c
+++ b/ecp/test/init.c
@@ -11,7 +11,10 @@ static ECPConnection *conn_new(ECPSocket *sock, unsigned char type) {
ECPConnection *conn;
conn = malloc(sizeof(ECPConnection));
- if (conn) ecp_conn_init(conn, sock, type);
+ if (conn) {
+ ecp_conn_init(conn, sock, type);
+ ecp_conn_set_flags(conn, ECP_CONN_FLAG_GC);
+ }
return conn;
}
diff --git a/ecp/test/init_vconn.c b/ecp/test/init_vconn.c
index 149b57a..64e9631 100644
--- a/ecp/test/init_vconn.c
+++ b/ecp/test/init_vconn.c
@@ -37,6 +37,7 @@ static ECPConnection *conn_new(ECPSocket *sock, unsigned char type) {
}
}
+ if (conn) ecp_conn_set_flags(conn, ECP_CONN_FLAG_GC);
return conn;
}