Tony Caduto wrote:
> I see there is a LineLimitExceeded event, but not sure how to use it.
By default the component clears the internal line buffer if the end of
line marker wasn't found. I would assume some attack or a suspicious
client when that happens at the server side and close the connection
as it is shown in the OverbyeIcsTcpSrv demo:
procedure TTcpSrvForm.ClientLineLimitExceeded(
Sender : TObject;
Cnt : LongInt;
var ClearData : Boolean);
begin
with Sender as TTcpSrvClient do begin
Display('Line limit exceeded from ' + GetPeerAddr + '. Closing.');
ClearData := TRUE;
Close;
end;
end;
--
Arno
--
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