From 324fdcfd583dbd95ce479712be57c6ca93c29fbb Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Thu, 23 Sep 2021 22:05:20 +0200 Subject: runtime split original file into chunks No need to split the original file on the server side. --- src/core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core.c') 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)); -- cgit v1.2.3-18-g5258