summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-23 22:05:20 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-29 15:49:11 +0200
commit324fdcfd583dbd95ce479712be57c6ca93c29fbb (patch)
tree472f5b4c00587ed8cd49d8987c806100ab5acb1b /src/core.c
parente39f7f8e3c940cb6e6fd23e99f03017bb5865114 (diff)
runtime split original file into chunks
No need to split the original file on the server side.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index ff471cc..8caabec 100644
--- a/src/core.c
+++ b/src/core.c
@@ -471,6 +471,7 @@ void tip_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events)
}
memcpy(&cli->addr, &client_addr, sizeof(client_addr));
cli->fd = -1;
+ cli->chunk = -1;
syslog(LOG_ERR, "accepting client connection from %s:%hu",
inet_ntoa(cli->addr.sin_addr), htons(cli->addr.sin_port));