FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 10-17-2010, 11:03 AM
Pasi Kärkkäinen
 
Default Bug in curl makes Fedora ftp:// URL installations fail with some mirrors

On Sun, Oct 17, 2010 at 09:29:48AM +0100, Richard W.M. Jones wrote:
> On Sat, Oct 16, 2010 at 11:49:39PM +0300, Pasi Kärkkäinen wrote:
> > You can reproduce the bug like this:
> > curl -o iputils-20071127-10.fc13.x86_64.rpm --range 1384-1400 ftp://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/13/Fedora/x86_64/os/Packages/iputils-20071127-10.fc13.x86_64.rpm
> >
> > It gives error "(28) FTP response timeout" after around one minute.
> > (1384 is the size of the header in many rpms).
>
> That command worked fine for me, with curl-7.21.0-5.fc14.x86_64, but I
> realized that it worked because I was using a proxy. So I would
> suggest people do:
>
> unset ftp_proxy
>
> before running the test. The command fails in the way you described
> without a proxy.
>
> I looked at the trace (curl -v) and it looks like the FTP server
> itself is not responding correctly. The problem does not seem to be
> the REST command, but the short RETR: curl only downloads 17 bytes
> then closes the connection, but this appears to confuse the FTP
> server. The FTP server appears to die when this happens, whereas I
> think I would expect it to send an error message on the control
> connection.
>

Yes, indeed, it seems more likely a bug in the FTP server (pure-ftpd),
but it would be very nice to have a workaround in curl or in anaconda for
it..

I'm sure ftp.funet.fi is not the only Fedora mirror running pure-ftpd.

-- Pasi

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-18-2010, 01:27 PM
Chuck Anderson
 
Default Bug in curl makes Fedora ftp:// URL installations fail with some mirrors

On Sun, Oct 17, 2010 at 02:03:20PM +0300, Pasi Kärkkäinen wrote:
> Yes, indeed, it seems more likely a bug in the FTP server (pure-ftpd),
> but it would be very nice to have a workaround in curl or in anaconda for
> it..

Why not fix the the problem at the source?

> I'm sure ftp.funet.fi is not the only Fedora mirror running pure-ftpd.

If pure-ftpd can't/won't be fixed, perhaps MirrorManager should
perform a test for broken ftp servers and refuse to hand out mirrors
that are running broken software.
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 10-19-2010, 01:19 PM
Pasi Kärkkäinen
 
Default Bug in curl makes Fedora ftp:// URL installations fail with some mirrors

On Mon, Oct 18, 2010 at 09:44:47AM -0500, Chris Adams wrote:
> Once upon a time, Chuck Anderson <cra@WPI.EDU> said:
> > On Sun, Oct 17, 2010 at 02:03:20PM +0300, Pasi Kärkkäinen wrote:
> > > Yes, indeed, it seems more likely a bug in the FTP server (pure-ftpd),
> > > but it would be very nice to have a workaround in curl or in anaconda for
> > > it..
> >
> > Why not fix the the problem at the source?
>
> Under the "be generous in what you accept", curl should be changed to
> handle this (especially if other clients can handle it).
>
> Looking at a packet dump, I'm not sure which side is at fault. FTP
> allows you to specify the start of data (start at offset 1384) but not
> an end, so the only way to get less than the full rest of the file is to
> abort the data transfer. It looks like curl just closes the data socket
> without sending an ABOR on the command socket, so I think the server is
> allowed to dump the client.
>
> It would be nicer for the server to handle this better as well, but I
> think the problem starts with curl.
>

There now curl updates.img available for F14 anaconda.

so people who care about this curl issue should test the updates.img
so we can figure out if the curl patch fixes the issue.

https://bugzilla.redhat.com/show_bug.cgi?id=643656

-- Pasi

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 09:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org