Bug 215812 - net-p2p/rtorrent: Broken SSL since 2017Q1
Summary: net-p2p/rtorrent: Broken SSL since 2017Q1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 215843
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-06 00:26 UTC by marek
Modified: 2017-01-07 14:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marek 2017-01-06 00:26:25 UTC
Rtorrent is unable to establish HTTPS connection with tracker. There are timeouts for these connections. HTTP connections works properly. This problem occurred after package upgrade from 2017Q1 branch.

I tried to find the problem by compiling rtorrent and dependencies from ports but it doesn't help. Also tried use rtorrent with curl without HTTP2 support but there was no difference and rtorrent still cannot connect with HTTPS.

The debug log from rtorrent shows only timeouts for HTTPS connections:

1483660890 I XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX->tracker_list: Failed to connect to tracker url:'https://tracker.xxx/announce.php?xxxx' msg:'Timeout was reached'.

FreeBSD version: 11.0-RELEASE-p6

Packages:
curl-7.52.1
libtorrent-0.13.6_1
rtorrent-0.9.6_1
xmlrpc-c-1.39.11
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2017-01-06 00:26:25 UTC
Maintainer informed via mail
Comment 2 marek 2017-01-06 16:26:25 UTC
I downgraded curl to several previous versions. With these versions (and default port options) rtorrent handles HTTPS connections properly:
- curl-7.50.3 (svn: 422575 / git: d2d82deb61cd3bcf01face4f6b9fff4b7d2f31ca)
- curl-7.51.0 (svn: 425153 / git: d0cfcfa01eeb6beb3b9e0cd0ed5f25515bf8336e)
- curl-7.51.0_5 (svn: 429171 / git: c120afc1ec8eedc18489206c010bb3b4cdcabf9f)

With these versions rtorrent has the problems with HTTPS connections:
- curl-7.52.0 (svn: 429173 / git: 13b92fbbf06d85422d02de4bb4bad5905e6ec628)
- curl-7.52.1 (svn: 429314 / git: cfc83d2859bc1d9a809dbe2393b3c85580d99be5)

It seems that the problem starts with curl 7.52.0 and newer.
Comment 3 marek 2017-01-06 22:48:33 UTC
The problem is related with recent versions of Curl (7.52.0 or newer). Created separated PR for curl and provided necessary patch here: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215843
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-01-07 11:16:06 UTC
It should be fixed in r430779. Please update curl to 7.52.1_1 and try again. Thanks!
Comment 5 marek 2017-01-07 14:30:47 UTC
The r430779 solves this issue. Thanks!