Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • TFtpCli V6 Bug truncated files upon download

    6 answers - 345 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    TFtpCli V6 truncates downloaded files.
    I found that wsoNoReceiveLoop causes ASyncReceive()
    to break even though there is still data pending.
    When I set S of the datasocket to []
    downloads work fine.
    Any idea why v5 and v6 behave so different?
    Is this a possible bug in TWsocket?
    Arno Garrels [TeamICS]
  • No.1 | | 117 bytes | |

    Strange.
    Is it totally reproductible ? does it occur only ocassinally ?
    Contribute to the SSL Effort. Visit
  • No.2 | | 306 bytes | |

    Francois Piette wrote:
    Strange.
    Is it totally reproductible ? does it occur only ocassinally ?

    It is totally reproducible! The FD_CLSE message arrives far before
    all data has been read causing ASyncReceive() to break the receive
    loop too early.

    Contribute to the SSL Effort. Visit
  • No.3 | | 1517 bytes | |

    Arno Garrels wrote:
    Francois Piette wrote:
    >Strange.
    >Is it totally reproductible ? does it occur only ocassinally ?


    It is totally reproducible! The FD_CLSE message arrives far before
    all data has been read causing ASyncReceive() to break the receive
    loop too early.

    I wonder why this C is needed at all? Shouldn't it
    be set only when a fast abort is required?


    >
    >Contribute to the SSL Effort. Visit
    >--
    >francois.piette (AT) overbyte (DOT) be
    >Author of ICS (Internet Component Suite, freeware)
    >Author of MidWare (Multi-tier framework, freeware)
    >http://www.overbyte.be
    >
    >Message
    >From: "Arno Garrels" <arno.garrels (AT) gmx (DOT) de>
    >To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    >Sent: Monday, September 18, 2006 12:41 PM
    >Subject: [twsocket] TFtpCli V6 Bug truncated files upon download
    >
    >

    Hi,

    TFtpCli V6 truncates downloaded files.
    I found that wsoNoReceiveLoop causes ASyncReceive()
    to break even though there is still data pending.

    When I set S of the datasocket to []
    downloads work fine.

    Any idea why v5 and v6 behave so different?
    Is this a possible bug in TWsocket?

    Arno Garrels [TeamICS]

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be
  • No.4 | | 1846 bytes | |

    The bug is in
    procedure TCustomWSocket.ASyncReceive(
    Error : Word;
    MyS : TWS);
    []
    { DLR Honor the socket options being passed as parameters }
    if H(FC, wsoNoReceiveLoop) then
    break;

    []

    should be:
    { DLR Honor the socket options being passed as parameters }
    if H(MyC, wsoNoReceiveLoop) then
    break;

    Arno Garrels wrote:
    Arno Garrels wrote:
    >Francois Piette wrote:

    Strange.
    Is it totally reproductible ? does it occur only ocassinally ?
    >
    >It is totally reproducible! The FD_CLSE message arrives far before
    >all data has been read causing ASyncReceive() to break the receive
    >loop too early.


    I wonder why this C is needed at all? Shouldn't it
    be set only when a fast abort is required?

    Contribute to the SSL Effort. Visit
    --
    francois.piette (AT) overbyte (DOT) be
    Author of ICS (Internet Component Suite, freeware)
    Author of MidWare (Multi-tier framework, freeware)
    http://www.overbyte.be

    Message
    From: "Arno Garrels" <arno.garrels (AT) gmx (DOT) de>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Monday, September 18, 2006 12:41 PM
    Subject: [twsocket] TFtpCli V6 Bug truncated files upon download

    Hi,

    TFtpCli V6 truncates downloaded files.
    I found that wsoNoReceiveLoop causes ASyncReceive()
    to break even though there is still data pending.

    When I set S of the datasocket to []
    downloads work fine.

    Any idea why v5 and v6 behave so different?
    Is this a possible bug in TWsocket?

    Arno Garrels [TeamICS]

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be
  • No.5 | | 1945 bytes | |

    Arno Garrels wrote:
    The bug is in
    procedure TCustomWSocket.ASyncReceive(
    Error : Word;
    MyS : TWS);
    []
    { DLR Honor the socket options being passed as parameters }
    if H(FC, wsoNoReceiveLoop) then
    break;

    []

    should be:
    { DLR Honor the socket options being passed as parameters }
    if H(MyC, wsoNoReceiveLoop) then
    break;

    Forget this quickly please, I'll catch it a bit later.

    Arno Garrels wrote:
    >Arno Garrels wrote:

    Francois Piette wrote:
    Strange.
    Is it totally reproductible ? does it occur only ocassinally ?

    It is totally reproducible! The FD_CLSE message arrives far before
    all data has been read causing ASyncReceive() to break the receive
    loop too early.
    >
    >I wonder why this C is needed at all? Shouldn't it
    >be set only when a fast abort is required?
    >
    >


    Contribute to the SSL Effort. Visit
    --
    francois.piette (AT) overbyte (DOT) be
    Author of ICS (Internet Component Suite, freeware)
    Author of MidWare (Multi-tier framework, freeware)
    http://www.overbyte.be

    Message
    From: "Arno Garrels" <arno.garrels (AT) gmx (DOT) de>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Monday, September 18, 2006 12:41 PM
    Subject: [twsocket] TFtpCli V6 Bug truncated files upon download

    Hi,

    TFtpCli V6 truncates downloaded files.
    I found that wsoNoReceiveLoop causes ASyncReceive()
    to break even though there is still data pending.

    When I set S of the datasocket to []
    downloads work fine.

    Any idea why v5 and v6 behave so different?
    Is this a possible bug in TWsocket?

    Arno Garrels [TeamICS]

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be
  • No.6 | | 2108 bytes | |

    I was a bit confused by the name MyS

    So the fix is:
    procedure TCustomWSocket.ASyncReceive()
    []
    { DLR Honor the socket options being passed as parameters }
    if wsoNoReceiveLoop in MyS then
    break;
    []

    Arno Garrels wrote:
    The bug is in
    procedure TCustomWSocket.ASyncReceive(
    Error : Word;
    MyS : TWS);
    []
    { DLR Honor the socket options being passed as parameters }
    if H(FC, wsoNoReceiveLoop) then
    break;

    []

    should be:
    { DLR Honor the socket options being passed as parameters }
    if H(MyC, wsoNoReceiveLoop) then
    break;

    Arno Garrels wrote:
    >Arno Garrels wrote:

    Francois Piette wrote:
    Strange.
    Is it totally reproductible ? does it occur only ocassinally ?

    It is totally reproducible! The FD_CLSE message arrives far before
    all data has been read causing ASyncReceive() to break the receive
    loop too early.
    >
    >I wonder why this C is needed at all? Shouldn't it
    >be set only when a fast abort is required?
    >
    >


    Contribute to the SSL Effort. Visit
    --
    francois.piette (AT) overbyte (DOT) be
    Author of ICS (Internet Component Suite, freeware)
    Author of MidWare (Multi-tier framework, freeware)
    http://www.overbyte.be

    Message
    From: "Arno Garrels" <arno.garrels (AT) gmx (DOT) de>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Monday, September 18, 2006 12:41 PM
    Subject: [twsocket] TFtpCli V6 Bug truncated files upon download

    Hi,

    TFtpCli V6 truncates downloaded files.
    I found that wsoNoReceiveLoop causes ASyncReceive()
    to break even though there is still data pending.

    When I set S of the datasocket to []
    downloads work fine.

    Any idea why v5 and v6 behave so different?
    Is this a possible bug in TWsocket?

    Arno Garrels [TeamICS]

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be

Re: TFtpCli V6 Bug truncated files upon download


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Windows"

EMSDN.COM