Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.09.04;
Скачать: CL | DM;

Вниз

Какая маскимальная длина у TidTCPServer в комманде WriteLn?   Найти похожие ветки 

 
rolex   (2005-08-10 20:51) [0]

Какая маскимальная длина у TidTCPServer в комманде WriteLn? У меня сервер должен отправлять ООЧень длинные строки, недавно выскочила ошибка "Max line length exceeded", причём ошибка вылезла в клиенте (IdTCPClient1.ReadLn).
Т.е. получается что сервак может отправлять (Writeln) строки любой длины, а клиент принимать (readln) ограниченной? Прошу прокомментируйте ситуацию.
Блин, придётся резать строки на куски и отправлять по нескольку раз.


 
Adder ©   (2005-08-10 20:57) [1]

F1:
TIdTCPConnection.MaxLineLength
IdMaxLineLengthDefault


 
rolex   (2005-08-11 11:10) [2]

Хм.. ничего подобного в справке нет.


 
Digitman ©   (2005-08-11 12:39) [3]


> ничего подобного в справке нет


а это я сам придумал ?

Maximum number of characters for line-oriented input methods.

property MaxLineLength: Integer;

Description

MaxLineLength is an Integer property that represents the maximum number of characters that can be read using a single call to ReadLn or InputLn method call. MaxLineLength is intended to protect TIdTCPConnection and descendants from Denial of Service attacks that might result from unchecked memory usage. The default value for MaxLineLength is IdMaxLineLengthDefault, as assigned in the Create constructor.

MaxLineLength is used in ReadLn and InputLn when the maximum line length argument to the method is -1 indicating that the property value should be used.


 
Slym ©   (2005-08-12 04:49) [4]

Все зависит от версии Indy


 
rolex   (2005-08-12 10:18) [5]

Версия Indy.... та, что идёт в комплекте с Delphi 7.



Страницы: 1 вся ветка

Текущий архив: 2005.09.04;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.041 c
2-1071496151
Green
2003-12-15 16:49
2005.09.04
В электронном виде Тейксейра, Пачеко где мона найти??


14-1123673384
msguns
2005-08-10 15:29
2005.09.04
Заточка ножей.


4-1121698162
Docent
2005-07-18 18:49
2005.09.04
Хук на Edit


1-1124090091
Profik
2005-08-15 11:14
2005.09.04
RXRichEdit


14-1123569542
boriskb
2005-08-09 10:39
2005.09.04
Майкл Линн против Cisco