[fpc-pascal] Buffer size for TCP DNS queries in netdb

Noel Duffy noelduffy at xtra.co.nz
Sat Sep 26 23:10:06 CEST 2020


On 26/09/20 9:07 pm, Michael Van Canneyt via fpc-pascal wrote:
> 
> On Sat, 26 Sep 2020, Noel Duffy via fpc-pascal wrote:
> 
>> To restate the question, is 64k too much overhead for DNS queries? That overhead would be present on all queries, regardless of whether UDP or TCP was used.
> 
> I would then prefer to allocate a dynamic buffer. A simple "Array of Byte" can
> easily be managed with SetLength() and it is automatically disposed of when
> not needed.

Fair enough. Dynamic it is. Thanks Michael.




More information about the fpc-pascal mailing list