#19104 [Opn->Fbk]: ftp_get hangs with small files

From: Date: Mon, 26 Aug 2002 15:15:10 +0000
Subject: #19104 [Opn->Fbk]: ftp_get hangs with small files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17863@lists.php.net to get a copy of this message
 ID:               19104
 Updated by:       sniper@php.net
 Reported By:      frederick.amorison@minfin.fed.be
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: Linux Debian Woody
 PHP Version:      4.1.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

This should be fixed already..



Previous Comments:
------------------------------------------------------------------------

[2002-08-26 07:50:43] frederick.amorison@minfin.fed.be

The same test with ftp_fget:

The "output" file is writen after 90 secs (but this time there is
something written).

PS: My "fopen" and "fclose" are correct!

------------------------------------------------------------------------

[2002-08-26 06:42:30] frederick.amorison@minfin.fed.be

Hello,

I have th following problem with ftp_get function.
When I try to download small files (198 bytes or less),   nothing seems
to happens. After 90 secs I receive a Warning message (Warning:
ftp_get: in /var/www/updater/toolbar.php on line 32 ).

My ftp server (proftpd) says transfer is Ok.


Here is a part of this script : (line 32 is the one with ftp_get)

  if ($ftp_conn=ftp_connect($RemoteServer)){
    if (ftp_login($ftp_conn,$login,$passwd)){
      if ($afiles=ftp_get($ftp_conn,$file,$file,FTP_BINARY)){
      } else { $res.="$msgDownloadFailed";}
    } else { $res.="$msgAutenticationFailed";}
  }else { $res.="$msgConnectionFailed";}

  ftp_quit($ftp_conn);
 

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19104&edit=1



Thread (4 messages)

« previous php.bugs (#17863) next »