diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-03-02 09:53:50 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-03-02 13:56:49 +0000 |
commit | bd62d11860a4e6e540f7116f0ef6c56b28b18837 (patch) | |
tree | 0d400a856818289fa36727de814a5cc3a0276089 /toxcore/Messenger.c | |
parent | 5a45008ab91a65ab6c907efebf822612a17a639f (diff) |
Make file transfers 50% faster.
By increasing a magic number.. Also, added more verbose logging to the
file transfer test.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 2bebae92..6e209f4d 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -1618,7 +1618,7 @@ static void do_reqchunk_filecb(Messenger *m, int32_t friendnumber, void *userdat | |||
1618 | // | 1618 | // |
1619 | // TODO(zoff99): Fix this to exit the loop properly when we're done | 1619 | // TODO(zoff99): Fix this to exit the loop properly when we're done |
1620 | // requesting all chunks for all file transfers. | 1620 | // requesting all chunks for all file transfers. |
1621 | const uint32_t MAX_FT_LOOPS = 4; | 1621 | const uint32_t MAX_FT_LOOPS = 16; |
1622 | 1622 | ||
1623 | while (((free_slots > 0) || loop_counter == 0) && any_active_fts && (loop_counter < MAX_FT_LOOPS)) { | 1623 | while (((free_slots > 0) || loop_counter == 0) && any_active_fts && (loop_counter < MAX_FT_LOOPS)) { |
1624 | any_active_fts = do_all_filetransfers(m, friendnumber, userdata, &free_slots); | 1624 | any_active_fts = do_all_filetransfers(m, friendnumber, userdata, &free_slots); |