Article delegate-en/4366 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:<_A4364@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: delgate 9.7.7 ftp to sftp proxy and file size
03 Feb 2009 23:36:04 GMT James <pbeiqbdyi-uyhyq25ky4tr.ml@ml.delegate.org>


2009/2/2 Yutaka Sato <feedback@delegate.org>:
> Hi,
>
> In message <_A4363@delegate-en.ML_> on 02/01/09(17:35:37)
> you James <pbeiqbdyi-uyhyq25ky4tr.ml@ml.delegate.org> wrote:
>  |> "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;

Yutaka I tried setting it to 0 but it still seems to max out at the 32
bit signed integer
(ie 2GB -1).  Makes sense really as type is still signed int so that
is all the memory that is allocated.  I then tried changing the data
type to FileSize and now it drops the connection at 65535 bytes which
looks a buffer size.

Do you know why it is crashing with type FileSize


-- 
jac

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