Re: [Lazarus] CGI Response.ContentStream client break

2014-07-04 Thread Michael Van Canneyt
On Thu, 3 Jul 2014, silvioprog wrote: 2014-07-03 17:33 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: [...] Mmm, no, too fast. Maybe the problem is on the client side. I'm using Synapse library as client, and I'm issuing THttpSend's Abort method to stop downloading. You

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-04 Thread Leonardo M . Ramé
On 2014-07-04 08:22:30 +0200, Michael Van Canneyt wrote: On Thu, 3 Jul 2014, silvioprog wrote: 2014-07-03 17:33 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: [...] Mmm, no, too fast. Maybe the problem is on the client side. I'm using Synapse library as client, and

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-04 Thread Michael Van Canneyt
On Fri, 4 Jul 2014, Leonardo M. Ramé wrote: On 2014-07-04 08:22:30 +0200, Michael Van Canneyt wrote: On Thu, 3 Jul 2014, silvioprog wrote: 2014-07-03 17:33 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: [...] Mmm, no, too fast. Maybe the problem is on the client side. I'm

[Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread Leonardo M . Ramé
Hi, I have a CGI program that serves some files using this code in an action: AResponse.ContentStream := TFileStream.Create(lImagePath, fmOpenRead); The problem I'm facing is that some times the client breaks the connection to the server, aparently leaving the file open. If the client tries to

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread silvioprog
2014-07-03 16:51 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: Hi, I have a CGI program that serves some files using this code in an action: AResponse.ContentStream := TFileStream.Create(lImagePath, fmOpenRead); The problem I'm facing is that some times the client breaks the connection to

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread Leonardo M . Ramé
On 2014-07-03 17:20:53 -0300, silvioprog wrote: 2014-07-03 16:51 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: Hi, I have a CGI program that serves some files using this code in an action: AResponse.ContentStream := TFileStream.Create(lImagePath, fmOpenRead); The problem I'm facing

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread Leonardo M . Ramé
On 2014-07-03 17:28:41 -0300, Leonardo M. Ramé wrote: On 2014-07-03 17:20:53 -0300, silvioprog wrote: 2014-07-03 16:51 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: Hi, I have a CGI program that serves some files using this code in an action: AResponse.ContentStream :=

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread silvioprog
2014-07-03 17:33 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: [...] Mmm, no, too fast. Maybe the problem is on the client side. I'm using Synapse library as client, and I'm issuing THttpSend's Abort method to stop downloading. You can change your 'broker' to a embedded HTTP server, and