[DeleGate-En] Re: delgate 9.7.7 ftp to sftp proxy and file size
In message <_A4361@delegate-en.ML_> on 01/30/09(13:44:34)
you James <email@example.com> wrote:
|I modified src/sftp.c as indicated in one of the posts
|and changed DATA_MAX to
|static int DATA_MAX = 1024*1024*1024
|which works fine for ftp PUT and GET for files up to 1GB
|however if i try to increase DATA_MAX to anything bigger than this
|when I perform a PUT I immeadiately receive
|200 PORT command successful [translated to PASV by DeleGate].
|netout: Broken pipe
|local: cvs remote: cvs
|65536 bytes sent in 0.0036 seconds (17733.44 Kbytes/s)
|is this a hard limit somewhere in delegate ?
|Am I able to configure DATA_MAX to be larger than 1gig ?
"int" means the signed integer of 32bits with the max value 2GB-1.
The limitation will be able to be enlarged by replacing "int"
with "FileSize" as this:
static FileSize DATA_MAX = 16*1024*1024*1024
or you can bypass the limitation just by setting the value to zero.
static int DATA_MAX = 0;
But I'm not sure if the current implementation of sftp/FTP gateway,
using the sftp command as a filter process, is stable enough for
|I have allocated a large /tmp partition so I am not concerned
|about temporary file space.
9 9 Yutaka Sato <firstname.lastname@example.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