Re: [fpc-pascal] How to stop a HttpApp via request? (Regression)

2013-10-22 Thread Michael Van Canneyt



On Tue, 22 Oct 2013, silvioprog wrote:


2013/10/18 Michael Van Canneyt 
  On Thu, 17 Oct 2013, silvioprog wrote:
Hello,
I updated the fcl-net and fcl-web of my Free Pascal copy, but when 
I try to terminate my app via
request, it return same error reported in this topic.


It works fine here.

Michael.


You're right. The problem is in my FPC copy, I'm waiting for the Lazarus team 
to create a snapshot of the current FPC.


I would not wait for that.

A Lazarus built with the current trunk FPC is nearly unworkable. 
(I suspect the changes in string handling are to blame for that)


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to stop a HttpApp via request? (Regression)

2013-10-22 Thread silvioprog
2013/10/18 Michael Van Canneyt 

> On Thu, 17 Oct 2013, silvioprog wrote:
>
>> Hello,
>> I updated the fcl-net and fcl-web of my Free Pascal copy, but when I try
>> to terminate my app via request, it return same error reported in this
>> topic.
>>
>
> It works fine here.
>
> Michael.
>

You're right. The problem is in my FPC copy, I'm waiting for the Lazarus
team to create a snapshot of the current FPC.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to stop a HttpApp via request? (Regression)

2013-10-18 Thread Michael Van Canneyt



On Thu, 17 Oct 2013, silvioprog wrote:


Hello,
I updated the fcl-net and fcl-web of my Free Pascal copy, but when I try to 
terminate my app via request, it return same error reported in this topic.


It works fine here.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2013-10-06 Thread DaWorm
Thumbs up.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-10-06 Thread Michael Van Canneyt



On Sat, 5 Oct 2013, silvioprog wrote:


2013/9/25 Michael Van Canneyt 
  On Wed, 25 Sep 2013, silvioprog wrote:
2013/9/24 Graeme Geldenhuys 
      On 24/09/13 10:46, Michael Van Canneyt wrote:
      >
      > I am working on it.

Thanks Michael.

btw: The fcl-web (and all your guidance) has worked wonders with my
client side CGI application. The organisation of code and 
application
flow is so much better. Thanks again for all your patience and help.


  I had a look at

  http://bugs.freepascal.org/view.php?id=24810

  And applied the patches there, with some extra modifications.

  I tested, and the server can now reliably be stopped without problems 
both in threaded or non threaded mode, from inside or outside a request.

  Michael.


Worked like a charm. Thank you very much Michael! (y)


What does (y) mean ?

Michael.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-10-05 Thread silvioprog
2013/9/25 Michael Van Canneyt 

> On Wed, 25 Sep 2013, silvioprog wrote:
>
>> 2013/9/24 Graeme Geldenhuys 
>>   On 24/09/13 10:46, Michael Van Canneyt wrote:
>>   >
>>   > I am working on it.
>>
>> Thanks Michael.
>>
>> btw: The fcl-web (and all your guidance) has worked wonders with my
>> client side CGI application. The organisation of code and application
>> flow is so much better. Thanks again for all your patience and help.
>>
>
> I had a look at
>
> http://bugs.freepascal.org/**view.php?id=24810
>
> And applied the patches there, with some extra modifications.
>
> I tested, and the server can now reliably be stopped without problems both
> in threaded or non threaded mode, from inside or outside a request.
>
> Michael.


Worked like a charm. Thank you very much Michael! (y)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-09-26 Thread silvioprog
2013/9/25 Michael Van Canneyt 

> On Wed, 25 Sep 2013, silvioprog wrote:
>
>> 2013/9/24 Graeme Geldenhuys 
>>   On 24/09/13 10:46, Michael Van Canneyt wrote:
>>   >
>>   > I am working on it.
>>
>> Thanks Michael.
>>
>> btw: The fcl-web (and all your guidance) has worked wonders with my
>> client side CGI application. The organisation of code and application
>> flow is so much better. Thanks again for all your patience and help.
>>
>
> I had a look at
>
> http://bugs.freepascal.org/**view.php?id=24810
>
> And applied the patches there, with some extra modifications.
>
> I tested, and the server can now reliably be stopped without problems both
> in threaded or non threaded mode, from inside or outside a request.
>
> Michael.


I need to test it, I'm waiting for the Lazarus team to update the snapshots
(ftp://freepascal.dfmk.hu/pub/lazarus/snapshots) ...

--
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-09-25 Thread Michael Van Canneyt



On Wed, 25 Sep 2013, silvioprog wrote:


2013/9/24 Graeme Geldenhuys 
  On 24/09/13 10:46, Michael Van Canneyt wrote:
  >
  > I am working on it.

Thanks Michael.

btw: The fcl-web (and all your guidance) has worked wonders with my
client side CGI application. The organisation of code and application
flow is so much better. Thanks again for all your patience and help.


I had a look at

http://bugs.freepascal.org/view.php?id=24810

And applied the patches there, with some extra modifications.

I tested, and the server can now reliably be stopped without problems both 
in threaded or non threaded mode, from inside or outside a request.


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2013-09-25 Thread silvioprog
2013/9/24 Graeme Geldenhuys 

> On 24/09/13 10:46, Michael Van Canneyt wrote:
> >
> > I am working on it.
>
> Thanks Michael.
>
> btw: The fcl-web (and all your guidance) has worked wonders with my
> client side CGI application. The organisation of code and application
> flow is so much better. Thanks again for all your patience and help.
>
> G.
>

Before fcl-web with Brook framework I used PHP with Slim framework, now I
rarely use PHP.

Thanks again guys! (y)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-09-25 Thread Graeme Geldenhuys
On 24/09/13 10:46, Michael Van Canneyt wrote:
> 
> I am working on it.


Thanks Michael.

btw: The fcl-web (and all your guidance) has worked wonders with my
client side CGI application. The organisation of code and application
flow is so much better. Thanks again for all your patience and help.


G.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2013-09-24 Thread silvioprog
2013/9/24 Michael Van Canneyt 

>  On Tue, 24 Sep 2013, Graeme Geldenhuys wrote:
>
>> 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.
>>
>
> I am working on it.
>
> Michael.


Thanks you Michael, I'll wait for this fix. (y)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-09-24 Thread silvioprog
2013/9/24 Graeme Geldenhuys 

> 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
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-09-24 Thread Michael Van Canneyt



On Tue, 24 Sep 2013, Graeme Geldenhuys wrote:


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.


I am working on it.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

2013-09-24 Thread Graeme Geldenhuys
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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal