I built a DataSnap server with Delphi XE2 that implements TDSHTTPService
. When the inbound request comes in, TIdIOHandler.InitComponent
is called in a thread before execution is handed to the method called in TServerMethods
. I do not have any Indy components in the server, so DataSnap is using Indy 10 under-the-hood.
.InitComponent()
sets the IO handler's max line length to a hard-coded value (FMaxLineLength := IdMaxLineLengthDefault;
), which is 16384. I can't find a way to increase the value. I even tried copying the IdIOHandler Unit to the project folder and changing the constant value. But it still picks up the IdIOHandler.dcu from the Indy 10 build, and ignores the copied file in my project folder. I also tried adding a TIdIOHandlerStream
component to the server project and setting its MaxLineLength
to no avail.
- Plan A = Properly set the
MaxLineLength
value in the DataSnap server. - Plan B = Somehow compile a modified
IdIOHandler.pas
file into my project.
Are either of these possible? I've been working on this for hours and can't find anything similar in all my searching, and can't seem to make any headway by experimenting.