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);
    with Sender as TTcpSrvClient do begin
        Display('Line limit exceeded from ' + GetPeerAddr + '. Closing.');
        ClearData := TRUE;


To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to