Changeset b043ad5


Ignore:
Timestamp:
2008-05-08T21:20:36Z (12 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
b5cfc2b
Parents:
44961cb
Message:

allow dcc optimization in progress watcher.

Apparently, irssi doesn't send any DCC ACKs if it "feels" that the sender
doesn't expect any(no idea how exactly it does that). Anyway, the progress
watcher used to check whether the ACKed bytes have increased which it shouldn't
do if there aren't any ACKs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    r44961cb rb043ad5  
    185185        struct dcc_file_transfer *df = data;
    186186
    187         if( df->ft->bytes_transferred == df->progress_bytes_last )
     187        if( df->bytes_sent == df->progress_bytes_last )
    188188        {
    189189                /* no progress. cancel */
     
    191191                        return dcc_abort( df, "Couldnt establish transfer within %d seconds", DCC_MAX_STALL );
    192192                else
    193                         return dcc_abort( df, "Transfer stalled for %d seconds at %d kb", DCC_MAX_STALL, df->ft->bytes_transferred / 1024 );
    194 
    195         }
    196 
    197         df->progress_bytes_last = df->ft->bytes_transferred;
     193                        return dcc_abort( df, "Transfer stalled for %d seconds at %d kb", DCC_MAX_STALL, df->bytes_sent / 1024 );
     194
     195        }
     196
     197        df->progress_bytes_last = df->bytes_sent;
    198198
    199199        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.