0
0
mirror of https://github.com/hufrea/byedpi.git synced 2025-06-29 18:21:14 +00:00

Fix desync of split request

This commit is contained in:
ruti 2025-06-06 11:31:33 +03:00
parent 4fbef41d2c
commit 624248789c

View File

@ -570,7 +570,7 @@ ssize_t desync(struct poolhd *pool,
ssize_t s = 0;
if (curr_part == part_skip) {
;
s = pos - lp;
} else
{
switch (part.m) {
@ -641,6 +641,7 @@ ssize_t desync(struct poolhd *pool,
if (sock_has_notsent(sfd)
|| (params.wait_send
&& curr_part > part_skip)) {
LOG(LOG_S, "sock_has_notsent\n");
set_timer(pool, val, params.await_int);
*wait = true;
return pos - offset;