>   if (FMaxLineLength <> 0) and (Length(s) > FMaxLineLength) then
> 
> In this way, when buffer(=s) size exceeds limit, suddenly 
> error returns regardless of x. Shouldn't it be like the following?

Yes, because it is limit for maximum length of internal buffer. (not 
maximum line length, as name say... it is old name and i not changed 
it just for backward compatibility...) 

It is just easy DOS protection. For example, I am setting it to 64k 
for SMTP, where maximum allowed line length is 2000 bytes.





-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.



_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to