On Fri, 29 May 2026, David Connolly via fpc-devel wrote:
Hi all, I have a simple server (included) that has stopped working due to some changes to fphttpserver or the sockets code. The problem, as far as my limited knowledge goes, seems to stem from FSocket.RemoteEndpoint.First.Address in fphttpserver.pp Replacing the FSocket.RemoteEndpoint.First.Address with HostAddrToStr(Data.RemoteAddress.sin_addr) - the old code - fixes the issue. Printing out FSocket.RemoteEndpoint.First.Address displays nothing. To test the included program, run it and "curl -d some=data http://127.0.0.1:8889"
Indeed, I can reproduce. Looks like some uninitialized value, I'll need to debug that.
I've reverted the FSocket.RemoteEndpoint.First.Address stuff so no-one is blocked. Thanks for pointing it out! Michael. _______________________________________________ fpc-devel maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
