Changeset d56ee38 for dcc.h


Ignore:
Timestamp:
2008-05-06T00:20:11Z (11 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
44961cb
Parents:
29c1456
Message:

timeout of transfers after 120 seconds of no progress (bytes received/sent).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dcc.h

    r29c1456 rd56ee38  
    4747#define DCC_PACKET_SIZE 1024
    4848
     49/* Time in seconds that a DCC transfer can be stalled before being aborted.
     50 * By handling this here individual protocols don't have to think about this. */
     51#define DCC_MAX_STALL 120
     52
    4953typedef struct dcc_file_transfer {
    5054
     
    6468        gint watch_out;  /* writable */
    6569       
     70        /* the progress watcher cancels any file transfer if nothing happens within DCC_MAX_STALL */
     71        gint progress_timeout;
     72        size_t progress_bytes_last;
     73
    6674        /*
    6775         * The total amount of bytes that have been sent to the irc client.
Note: See TracChangeset for help on using the changeset viewer.