Hi,

> To clarify, OnDataAvailable has received complete data, say:
> help\n
> In processing that data, an exception occurs and TWSocket.Abort is called
to
> abort the connection.  Before .Abort returns, OnDataAvailable is called
> again, with the exact same that was already being processed:

These are possible untested situations. It is possible to call Abort from
within an event, but why should you call Abort if the session is closed? 

-- 
mvg, Wilfried
http://www.mestdagh.biz

-----Oorspronkelijk bericht-----
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
Jon Robertson
Verzonden: vrijdag 26 maart 2010 9:03
Aan: ICS support mailing
Onderwerp: Re: [twsocket] InternalAbort causes OnDataAvailable *during* the
Abort call

On Fri, Mar 26, 2010 at 2:46 AM, Jon Robertson
<jon.robert...@pobox.com>wrote:

> In fact, OnDataAvailable has already been called with the exact same data.
> If OnDataAvailable is called twice with the same data, but the data was
only
> received once, I consider that a bug.
>

To clarify, OnDataAvailable has received complete data, say:
help\n

In processing that data, an exception occurs and TWSocket.Abort is called to
abort the connection.  Before .Abort returns, OnDataAvailable is called
again, with the exact same that was already being processed:
help\n

But the client has only sent the data once.

-- 
Jon Robertson
Borland Certified Advanced Delphi 7 Developer
Good programming is 40% experience, 30% skill, 20% RTFM, 10% caffeine, and
5% attention to detail.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to