Article delegate-en/3989 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3985@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: HTTP Gateway to FTP server - Unable to Open Binary Files
28 May 2008 07:52:39 GMT "NGU,THANH" <pryhqbdyi-ry4zqcnsjzvr.ml@ml.delegate.org>


Hi Sato-san,

Thank you for your reply.  Here is the FTP response message.

05/28 00:43:28.89 [6004] 6+1: ## viaCFI [mkPASV]: fileno(ts)=23 ToSX=24
05/28 00:43:28.89 [6004] 6+1: connectTO: assume in non-blocking mode
05/28 00:43:29.22 [6004] 6+1: ftp_conndata: connected
10.10.94.6:3335->myhost/10.12.247.81:10195 [27](0.3)
     5  CWD /somedir/tool.ppt
     6  550 No such file or directory.
     6  CWD somedir
     7  250  Command successful.
     7  SIZE tool.ppt
     8  500 Command not supported: SIZE
     8  RETR tool.ppt
     9  150 Binary data connection for tool.ppt (106,496 bytes).
    10  226 File receive OK.
05/28 00:43:34.33 [6004] 6+1: SOCKET recv(27)=0 error=0 [0.000] TCP
AF_INET :333
5 << :10195
05/28 00:43:34.33 [6004] 6+1: bind_insock(28,127.0.0.1,0) = 0, errno=0
05/28 00:43:34.33 [6004] 6+1: connectTO: assume in non-blocking mode
05/28 00:43:35.32 [6004] 6+1: ## connect[28] TIMEOUT(1000)

It seems like the FTP server does not support the SIZE command.
However, the FTP server does disply the right response size at this line
"9  150 Binary data connection for tool.ppt (106,496 bytes)."

Best regards,
Thanh 
-----Original Message-----
From: Yutaka Sato [mailto:feedback@delegate.org] 
Sent: Saturday, May 24, 2008 11:54 PM
To: feedback@delegate.org
Cc: NGU,THANH
Subject: Re: [DeleGate-En] HTTP Gateway to FTP server - Unable to Open
Binary Files

Hi,

I found the problem in your log:

In message <_A3984@delegate-en.ML_> on 05/25/08(15:20:41) I wrote:
 | |Here are some of the errors in the log.
 |...
 | |05/22 14:33:39.19 [4684] 3+2/1: ## got SIGPIPE [1] in HTTP:
Gatewaying
 | |05/22 14:33:39.19 [4684] 3+2/1: FTP/HTTP DONE: GOT 30720 / 465 bytes

DeleGate is recognizing the size of the response data from the FTP
server as
465 bytes.  This is forwarded to your browser in Content-Length thus
your
browser receives only 465 bytes.

 | |The actual size of the binary PowerPoint file is 465408 bytes, but
the
 | |content-length only shows 465 bytes.

The size should have been extracted from the 150 status response message
from the FTP server like this:

  150 Openning BINARY mode data connection for xxx.ppt (465 bytes)

You can peep the response message from the FTP server with an option of
DeleGate as this:

  CMAP=-tee-n:FSV:ftp

If the size indicated by the FTP server is like above, the problem is
the
matter of the FTP server.

Another possible situation is that the 150 status response from the
server
is very long, longer than 4096 bytes, and "465408" is just turncated
after
"465" although it is not very likery.
Yet another possible situation is the function to scan the 150 response,
getFsize() in ftp.c, does not fit the non-standard format of the data
size,
possibly ? like "465,408".

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V