summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-14 12:37:36 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-14 12:48:21 +0200
commitca545d39bd68d156a0dddbab204e743202dbfba3 (patch)
tree59c1f02c30eb18237c3602d64fe8acee30fd94d0 /src/core.c
parent060e31cb53386282f1995937c18fe39855865046 (diff)
#998 disable incremental image API
This API is not supported by ogClient yet and it uses the obsolete socket hydra API.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/core.c b/src/core.c
index f7c25f5..0d90de4 100644
--- a/src/core.c
+++ b/src/core.c
@@ -29,7 +29,6 @@ static void og_client_release(struct ev_loop *loop, struct og_client *cli)
syslog(LOG_DEBUG, "closing keepalive connection for %s:%hu in slot %d\n",
inet_ntoa(cli->addr.sin_addr),
ntohs(cli->addr.sin_port), cli->keepalive_idx);
- tbsockets[cli->keepalive_idx].cli = NULL;
}
list_del(&cli->list);
@@ -38,21 +37,6 @@ static void og_client_release(struct ev_loop *loop, struct og_client *cli)
free(cli);
}
-static void og_client_keepalive(struct ev_loop *loop, struct og_client *cli)
-{
- struct og_client *old_cli;
-
- old_cli = tbsockets[cli->keepalive_idx].cli;
- if (old_cli && old_cli != cli) {
- syslog(LOG_DEBUG, "closing old keepalive connection for %s:%hu\n",
- inet_ntoa(old_cli->addr.sin_addr),
- ntohs(old_cli->addr.sin_port));
-
- og_client_release(loop, old_cli);
- }
- tbsockets[cli->keepalive_idx].cli = cli;
-}
-
static void og_client_reset_state(struct og_client *cli)
{
cli->state = OG_CLIENT_RECEIVING_HEADER;
@@ -182,7 +166,6 @@ static void og_client_read_cb(struct ev_loop *loop, struct ev_io *io, int events
syslog(LOG_DEBUG, "leaving client %s:%hu in keepalive mode\n",
inet_ntoa(cli->addr.sin_addr),
ntohs(cli->addr.sin_port));
- og_client_keepalive(loop, cli);
og_client_reset_state(cli);
}
break;