Permalink
Browse files

Revert "Don't prefer TCP connections over uTP."

This reverts commit a052963.
  • Loading branch information...
1 parent db8d8b7 commit 4ac1f7b09ed47eb40e316cf5a6aa61c7afe8eab8 @sledgehammer999 sledgehammer999 committed Nov 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/qtlibtorrent/qbtsession.cpp
@@ -491,7 +491,10 @@ void QBtSession::configureSession() {
sessionSettings.enable_outgoing_utp = pref.isuTPEnabled();
// uTP rate limiting
sessionSettings.rate_limit_utp = pref.isuTPRateLimited();
- sessionSettings.mixed_mode_algorithm = session_settings::peer_proportional;
+ if (sessionSettings.rate_limit_utp)
+ sessionSettings.mixed_mode_algorithm = session_settings::prefer_tcp;
+ else
+ sessionSettings.mixed_mode_algorithm = session_settings::peer_proportional;
sessionSettings.connection_speed = 20; //default is 10
#endif
qDebug() << "Settings SessionSettings";

0 comments on commit 4ac1f7b

Please sign in to comment.