Bug 215843

Summary: [PATCH] ftp/curl: multi_socket timeouts with OpenSSL
Product: Ports & Packages Reporter: marek
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 215812    
Attachments:
Description Flags
Fix for the multi_socket timeouts issue none

Description marek 2017-01-06 22:46:16 UTC
Created attachment 178590 [details]
Fix for the multi_socket timeouts issue

Recent versions of Curl (7.52.0 and newer) have problems with handling https connections. This causes that some of FreeBSD ports are not working when using https. The example port is netp2p/rtorrent, that is unable to connect to the tracer using https. More information here: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215812

The problem was identified and there is a patch[1] for curl 7.52.1 that fixes this issue. This issue will also fixed on next curl release (7.52.2) [2].

I tested this patch with FreeBSD port and I can confirm that it works. In attachment you will find prepared patch for FreeBSD port. Please apply it for HEAD and 2017Q1 branches. Updating curl for 2017Q1 branch will be nice, because we will not need to wait almost three months to fix other ports functionality.

Refferences:
[1] https://github.com/curl/curl/issues/1174
[2] https://curl.haxx.se/dev/release-notes.html
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-01-07 11:15:47 UTC
It should be fixed in r430779. Please update curl to 7.52.1_1 and try again. Thanks!
Comment 2 marek 2017-01-07 14:29:55 UTC
The r430779 solves this issue. Thanks!