From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 30 08:50:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 53260B12 for ; Tue, 30 Jul 2013 08:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 30B812DD8 for ; Tue, 30 Jul 2013 08:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6U8o24q038135 for ; Tue, 30 Jul 2013 08:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6U8o2qO038134; Tue, 30 Jul 2013 08:50:02 GMT (envelope-from gnats) Resent-Date: Tue, 30 Jul 2013 08:50:02 GMT Resent-Message-Id: <201307300850.r6U8o2qO038134@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henrik Larsson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3B74EAE1 for ; Tue, 30 Jul 2013 08:48:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 286D92DBE for ; Tue, 30 Jul 2013 08:48:31 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6U8mUMS019252 for ; Tue, 30 Jul 2013 08:48:30 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6U8mThL019176; Tue, 30 Jul 2013 08:48:29 GMT (envelope-from nobody) Message-Id: <201307300848.r6U8mThL019176@oldred.freebsd.org> Date: Tue, 30 Jul 2013 08:48:29 GMT From: Henrik Larsson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180942: ftp/curl 7.31.0 "getpeername() failed with errno 57: Socket is not connected" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jul 2013 08:50:02 -0000 >Number: 180942 >Category: ports >Synopsis: ftp/curl 7.31.0 "getpeername() failed with errno 57: Socket is not connected" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 30 08:50:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Henrik Larsson >Release: 8.4 >Organization: >Environment: FreeBSD 8.4-RELEASE FreeBSD 8.4-RELEASE #0: Thu Jun 13 23:41:57 CEST 2013 :/usr/obj/usr/src/sys/GENERIC amd64 >Description: I have installed "Curl 7.31.0" on FreeBSD 8.4 using the port. I have an issue with using Curl to download from a specific site. If I try to download from the site directly, it fail with "getpeername() failed with errno 57: Socket is not connected": --cut-- % curl -v http://www.malwarepatrol.net * Adding handle: conn: 0x801286300 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x801286300) send_pipe: 1, recv_pipe: 0 * About to connect() to www.malwarepatrol.net port 80 (#0) * Trying 141.101.116.91... * Connected to www.malwarepatrol.net (141.101.116.91) port 80 (#0) * getpeername() failed with errno 57: Socket is not connected > GET / HTTP/1.1 > User-Agent: curl/7.31.0 > Host: www.malwarepatrol.net > Accept: */* > * Recv failure: Software caused connection abort * Closing connection 0 curl: (56) getpeername() failed with errno 57: Socket is not connected --cut-- If I download the Curl source files and run configure with no other options than "prefix". The download work fine: --cut-- % ./curl -v -s http://www.malwarepatrol.net | more * About to connect() to www.malwarepatrol.net port 80 (#0) * Trying 141.101.116.91... * Adding handle: conn: 0x80147f600 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x80147f600) send_pipe: 1, recv_pipe: 0 * Connected to www.malwarepatrol.net (141.101.116.91) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.31.0 > Host: www.malwarepatrol.net > Accept: */* > < HTTP/1.1 200 OK * Server cloudflare-nginx is not blacklisted < Server: cloudflare-nginx < Date: Tue, 30 Jul 2013 08:46:59 GMT < Content-Type: text/html; charset=iso-8859-1 < Transfer-Encoding: chunked < Connection: keep-alive < Set-Cookie: __cfduid=da641ad74c9637d2f54289e4ba4fc885c1375174018764; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.malwarepatrol.net < CF-RAY: 960c811325b05b5 --cut-- This is the output of my OPTIONS file: --cut-- # This file is auto-generated by 'make config'. # Options for curl-7.31.0 _OPTIONS_READ=curl-7.31.0 _FILE_COMPLETE_OPTIONS_LIST=CA_BUNDLE COOKIES CURL_DEBUG DEBUG DOCS EXAMPLES GSSAPI IDN IPV6 LDAP LDAPS LIBSSH2 NTLM PROXY RTMP SPNEGO TLS_SRP CARES THREADED_RESOLVER CYASSL GNUTLS NSS OPENSSL POLARSSL OPTIONS_FILE_SET+=CA_BUNDLE OPTIONS_FILE_UNSET+=COOKIES OPTIONS_FILE_UNSET+=CURL_DEBUG OPTIONS_FILE_UNSET+=DEBUG OPTIONS_FILE_SET+=DOCS OPTIONS_FILE_SET+=EXAMPLES OPTIONS_FILE_SET+=GSSAPI OPTIONS_FILE_UNSET+=IDN OPTIONS_FILE_UNSET+=IPV6 OPTIONS_FILE_UNSET+=LDAP OPTIONS_FILE_UNSET+=LDAPS OPTIONS_FILE_UNSET+=LIBSSH2 OPTIONS_FILE_UNSET+=NTLM OPTIONS_FILE_SET+=PROXY OPTIONS_FILE_UNSET+=RTMP OPTIONS_FILE_UNSET+=SPNEGO OPTIONS_FILE_SET+=TLS_SRP OPTIONS_FILE_UNSET+=CARES OPTIONS_FILE_SET+=THREADED_RESOLVER OPTIONS_FILE_UNSET+=CYASSL OPTIONS_FILE_UNSET+=GNUTLS OPTIONS_FILE_UNSET+=NSS OPTIONS_FILE_SET+=OPENSSL OPTIONS_FILE_UNSET+=POLARSSL --cut-- I have no idea if some of the specific FreeBSD patches or the port specific Makefile is causing this, and need some help to fix it. >How-To-Repeat: - Install ftp/curl port - Run command "curl -v http://www.malwarepatrol.net" - The download fail with "getpeername() failed with errno 57: Socket is not connected" >Fix: >Release-Note: >Audit-Trail: >Unformatted: