Article delegate-en <_A3985@delegate-en.ML_>
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[delegate-en/3985] [Reference:<_A3984@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: HTTP Gateway to FTP server - Unable to Open Binary Files
25 May 2008 06:54:36 GMT (Yutaka Sato)
The DeleGate Project


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:


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".

  9 9   Yutaka 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]