diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-08-14 12:37:36 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-08-14 12:48:21 +0200 |
commit | ca545d39bd68d156a0dddbab204e743202dbfba3 (patch) | |
tree | 59c1f02c30eb18237c3602d64fe8acee30fd94d0 /src/core.c | |
parent | 060e31cb53386282f1995937c18fe39855865046 (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.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -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; |