Changeset 12548


Ignore:
Timestamp:
Jul 13, 2011, 7:22:10 PM (12 years ago)
Author:
jordan
Message:

(trunk gtk, qt) #4165 "FD_SETSIZE impact on open-file-limit and peer-limit-global" -- cap the per-torrent and per-session peer limits at FD_SETSIZE.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-prefs.c

    r12467 r12548  
    12011201    hig_workarea_add_section_title( t, &row, _( "Peer Limits" ) );
    12021202
    1203     w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_TORRENT, core, 1, 300, 5 );
     1203    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_TORRENT, core, 1, FD_SETSIZE, 5 );
    12041204    hig_workarea_add_row( t, &row, _( "Maximum peers per _torrent:" ), w, NULL );
    1205     w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, 3000, 5 );
     1205    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, FD_SETSIZE, 5 );
    12061206    hig_workarea_add_row( t, &row, _( "Maximum peers _overall:" ), w, NULL );
    12071207
  • trunk/qt/prefs-dialog.cc

    r11923 r12548  
    353353    hig->addSectionDivider( );
    354354    hig->addSectionTitle( tr( "Limits" ) );
    355     hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, 300, 5 ) );
    356     hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, 3000, 5 ) );
     355    hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, FD_SETSIZE, 5 ) );
     356    hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, FD_SETSIZE, 5 ) );
    357357
    358358    hig->addSectionDivider( );
Note: See TracChangeset for help on using the changeset viewer.