From 2f228c27c2bd23178f412419a4bc352f8543d81a Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 25 Apr 2021 13:30:24 +0200 Subject: [PATCH] Retry successful writes immediately --- opentracker.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentracker.c b/opentracker.c index cc0700c..7e426d2 100644 --- a/opentracker.c +++ b/opentracker.c @@ -218,6 +218,9 @@ static void handle_write( const int64 sock ) { if( res == -3 ) break; + if( !cookie->batch[i].bytesleft ) + continue; + if( res == -1 || res > 0 || i < cookie->batches - 1 ) return; }