[fpc-pascal] How to stop a HttpApp via request?

silvioprog silvioprog at gmail.com
Tue Sep 24 14:40:32 CEST 2013


2013/9/24 Graeme Geldenhuys <graeme at geldenhuys.co.uk>

> On 23/09/13 21:03, silvioprog wrote:
> > How do I stop the socket before finishing my application?
>
> I've been unsuccessful with that myself, and mentioned it to Michael van
> Canneyt. I tried everything I could thing of, and nothing worked. I was
> using Windows. I haven't tested under Linux or FreeBSD yet.
>
> In the mean time I switched my app to using Synapse's HTTP Server
> instead of the Free Pascal one. With Synapse and Indy components I can
> stop the HTTP Server without problems.
>
> Regards,
>   Graeme


I'm using Windows too.

In TcpIpComp (https://github.com/silvioprog/tcpipcomp) I had to add a
property to indicate that the program was ending. This fixed the problem.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130924/f46ee3b2/attachment.html>


More information about the fpc-pascal mailing list