<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>From fastcgi.pp<br></div><div><br></div><div><a href="https://github.com/graemeg/freepascal/blob/master/packages/fastcgi/src/fastcgi.pp" rel="nofollow" target="_blank" class="">https://github.com/graemeg/freepascal/blob/master/packages/fastcgi/src/fastcgi.pp</a></div><div><br></div><div><br></div><div>In line 510</div><div><br></div><div><div>FCGI_ContentRecord = record<br>    header : FCGI_Header;<br>    ContentData : array[0..1023] of byte;<br>end;</div><div><br></div><div>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 <span><span>65536</span></span> bytes.<br></div><div><br></div><div>According  to FastCGI specification, <br></div><div><br></div><div><a href="http://www.mit.edu/~yandros/doc/specs/fcgi-spec.html" rel="nofollow" target="_blank" class="">http://www.mit.edu/~yandros/doc/specs/fcgi-spec.html</a></div><div><br></div><div><span><tt>"contentData</tt>:

        Between 0 and 65535 bytes of data, interpreted
        according to the record type.</span>"<br></div><div><br></div><div>Why fastcgi.pp declared it as <span>array[0..1023] of byte</span> instead of <span>array[0.. <span><span>65535</span></span>] of byte</span> ?<br></div><div><br></div><div><br></div></div><div><br></div></div></body></html>