custfcgi.pp and fpfcgi.pp both directly /indirectly depends on fastcgi unit.<br id="yMail_cursorElementTracker_1558170885807"><br><div id="ymail_android_signature">Zamrony P. Juhara</div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Sat, May 18, 2019 at 16:54, Michael Van Canneyt</div><div><michael@freepascal.org> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <br clear="none"><div class="yqt8895786522 yQTDBase" id="yqtfd67834"><br clear="none">On Sat, 18 May 2019, Zamrony P. Juhara via fpc-pascal wrote:<br clear="none"><br clear="none">>> From fastcgi.pp<br clear="none">><br clear="none">> <a shape="rect" href="https://github.com/graemeg/freepascal/blob/master/packages/fastcgi/src/fastcgi.pp" target="_blank">https://github.com/graemeg/freepascal/blob/master/packages/fastcgi/src/fastcgi.pp</a><br clear="none">><br clear="none">> In line 510<br clear="none">> FCGI_ContentRecord = record<br clear="none">>     header : FCGI_Header;<br clear="none">>     ContentData : array[0..1023] of byte;<br clear="none">> end;<br clear="none">> Field ContentData is 1024 bytes. Actual ContentData length is related to field ContentLength of FCGI_Header. ContentLength is declared as word type to conform with FastCGI specification. So maximum ContentLength is 65536 bytes.<br clear="none">><br clear="none">> According  to FastCGI specification,<br clear="none">><br clear="none">> <a shape="rect" href="http://www.mit.edu/~yandros/doc/specs/fcgi-spec.html" target="_blank">http://www.mit.edu/~yandros/doc/specs/fcgi-spec.html</a><br clear="none">> "contentData: Between 0 and 65535 bytes of data, interpreted according to the record type."<br clear="none">><br clear="none">> Why fastcgi.pp declared it as array[0..1023] of byte instead of array[0.. 65535] of byte ?</div><br clear="none"><br clear="none">This unit is a translation of a library. Most likely, that was exactly the<br clear="none">value specified in the original header files.<br clear="none"><br clear="none">I would not recommend using this unit. <br clear="none">It is most likely outdated, and I would not even know what library it supports. <br clear="none">I will ask on the core group what to do, I think it is better to remove it.<br clear="none"><br clear="none">Free Pascal supports fastcgi natively using the custfcgi or fpfcgi units.<br clear="none"><br clear="none">Michael. </div> </blockquote>