From nobody@FreeBSD.org  Fri Nov 27 10:50:34 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A872D1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Nov 2009 10:50:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 97F7C8FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Nov 2009 10:50:34 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nARAoXXD058756
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Nov 2009 10:50:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nARAoXcx058755;
	Fri, 27 Nov 2009 10:50:33 GMT
	(envelope-from nobody)
Message-Id: <200911271050.nARAoXcx058755@www.freebsd.org>
Date: Fri, 27 Nov 2009 10:50:33 GMT
From: Helmut Schneider <jumper99@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ftp/ncftp-3.2.2_1: Could not read reply from control connection -- timed out.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140934
>Category:       ports
>Synopsis:       ftp/ncftp 3.2.2_1: Could not read reply from control connection -- timed out.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 27 11:00:07 UTC 2009
>Closed-Date:    Tue Dec 29 09:29:02 UTC 2009
>Last-Modified:  Fri May 21 10:40:03 UTC 2010
>Originator:     Helmut Schneider
>Release:        8.0-RELEASE
>Organization:
>Environment:
FreeBSD BSDHelmut.charlieroot.de 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Mon Nov 23 18:31:07 CET 2009     root@BSDHelmut.charlieroot.de:/usr/obj/usr/src/sys/GENERIC-QUOTA-PF-ALTQ  amd64
>Description:
Since 8.0-RELEASE ncftpput partially fails.

The files are uploaded but the message is annoying. I'm running 7.2 and 8.0 Releases. I upgraded a few machines from 7.2 to 8.0 and all of the show the errors.

- I checked with IIS7 ftp Servers and vsftpd Servers to ensure it is not related to the ftp service.
- Also, there is no firewall in place, client and server are in the same subnet.
- I checked with physical and virtual machines.
- Again, 7.2 is fine on the same machine (I set up a dual boot config to test).

# ncftpput -u user -p password ftp.charlieroot.de / /boot/kernel/kernel
/boot/kernel/kernel:                                    11.78 MB   19.55 MB/s
Could not read reply from control connection -- timed out.
Could not preserve times for kernel: timed out while waiting for server response.
#

Some other apps are therofore affected, e.g. duplicity.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->obrien 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Nov 27 12:04:00 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140934 

From: Manfred Usselmann <usselmann.m@icg-online.de>
To: bug-followup@FreeBSD.org, jumper99@gmx.de
Cc:  
Subject: Re: ports/140934: ftp/ncftp 3.2.2_1: Could not read reply from
 control connection -- timed out.
Date: Sat, 12 Dec 2009 22:10:45 +0100

 Hi,
 
 is there any solution or workaround?
 
 > Severity:	non-critical
 > Priority:	low  
 
 For me duplicity is not working because of this, no backup is not low
 priority for me... ;-)
 
 Regards,
 Manfred 
 
 
 
 
 
 -- 
 Manfred Usselmann <usselmann.m@icg-online.de>
 ICG IT Consulting GmbH, Kelkheim
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Tue Dec 29 09:25:42 UTC 2009 
State-Changed-Why:  
Sorry, there isn't enough in this PR to be actionable.  The port has 
been updated to 3.2.3 though - maybe that will work beter for you. 
Since things worked OK for you with the same ncftp sources on 7.2, 
this is probably more fall out to FreeBSD changes that could be 
questionable.  I attempted to fix some issues FreeBSD-8 had, but 
maybe missed some.  See my commit: 
---------------------------- 
date: 2008/09/03 15:32:54;  author: obrien;  state: Exp;  lines: +1 -1 
Somewhere along the way of 8-CURRENT, we seem to have diverged in 
functionality from other Unixen (including FreeBSD 7.0): 
NcFTP's sio library function, _SConnect, wants to select() for one 
descriptor.  It creates fd_set structures for writable fds and 
exception fds, with each fd set having only one bit set corresponding 
to the single descriptor it is selecting.  select() then returns 2, 
rather than 1.  NcFTP was checking if select returned 1, and if so, 
OK, if not 1, error.  Since 2 was returned, this was causing a problem. 
---------------------------- 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140934 

From: "Helmut Schneider" <jumper99@gmx.de>
To: <bug-followup@FreeBSD.org>
Cc: <obrien@FreeBSD.org>
Subject: Re: ports/140934: ftp/ncftp 3.2.2_1: Could not read reply from control connection -- timed out.
Date: Thu, 31 Dec 2009 03:27:40 +0100

 Unfortunately, 3.2.3 is broken on 8.0, too. 

From: Manfred Usselmann <usselmann.m@icg-online.de>
To: bug-followup@FreeBSD.org, jumper99@gmx.de
Cc:  
Subject: Re: ports/140934: ftp/ncftp 3.2.2_1: Could not read reply from
 control connection -- timed out.
Date: Fri, 1 Jan 2010 15:19:26 +0100

 To work around the problem I recompiled ncftp 3.2.3 myself and changed
 every instance of select() result checking from "==1" to ">=1". This
 fixed it for me.
 
 This sounds like the mentioned fix to FreeBSD 8 (2008/09/03 15:32:54;
 author: obrien;) should have fixed it, but select() still seems to
 return 2. Has this fix gone into FreeBSD 8 STABLE?

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/140934: commit references a PR
Date: Fri, 21 May 2010 10:36:39 +0000 (UTC)

 Author: kib
 Date: Fri May 21 10:36:29 2010
 New Revision: 208374
 URL: http://svn.freebsd.org/changeset/base/208374
 
 Log:
   Remove PIOLLHUP from the flags used to test for to set exceptfsd
   fd_set bits in select(2). It seems that historical behaviour is to not
   reporting exception on EOF, and several applications are broken.
   
   Reported by:	Yoshihiko Sarumaru <ysarumaru gmail com>
   Discussed with:	bde
   PR:	ports/140934
   MFC after:	2 weeks
 
 Modified:
   head/sys/kern/sys_generic.c
 
 Modified: head/sys/kern/sys_generic.c
 ==============================================================================
 --- head/sys/kern/sys_generic.c	Fri May 21 09:52:49 2010	(r208373)
 +++ head/sys/kern/sys_generic.c	Fri May 21 10:36:29 2010	(r208374)
 @@ -996,7 +996,7 @@ done:
  static int select_flags[3] = {
      POLLRDNORM | POLLHUP | POLLERR,
      POLLWRNORM | POLLHUP | POLLERR,
 -    POLLRDBAND | POLLHUP | POLLERR
 +    POLLRDBAND | POLLERR
  };
  
  /*
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
