[twsocket] Adding gzip to HttpCli

2005-06-30 Thread Maurizio Lotauro
Hello, I finally get some time to check the changes proposed to handle the gzip content encoding. First I think that it should be better not to add specific gzip handling but a generic class to handle the content encoding, using a registration machanism for each encoding, like what happen with TG

[twsocket] Adding gzip to HttpCli

2005-07-24 Thread Xavier Le Bris
Hello, A contribution to compression with gzip and some answers to Maurizio's questions : It is a good idea to put the whole stuff in another unit. a/ The site 'http://www.pipeboost.com/' works today for me in T_HttpCliGz. If not, check if zlib.dll is well loaded. Maurizio, if you want, I can s

Re: [twsocket] Adding gzip to HttpCli

2005-07-11 Thread Francois PIETTE
PROTECTED] http://www.overbyte.be - Original Message - From: "Maurizio Lotauro" <[EMAIL PROTECTED]> To: Sent: Friday, July 01, 2005 12:00 AM Subject: [twsocket] Adding gzip to HttpCli Hello, I finally get some time to check the changes proposed to handle the gzip

Re: [twsocket] Adding gzip to HttpCli

2005-07-11 Thread Maurizio Lotauro
On 11-Jul-05 19:23:20 Francois PIETTE wrote: Welcome back Francois :-) >> a) where is the best place to decode the received stream? Xavier do >> this in the GetBodyLineNext when the end of document is reached. >I think decoding should be done on the fly. What do you mean? Data should be decoded

Re: [twsocket] Adding gzip to HttpCli

2005-07-12 Thread Francois PIETTE
a) where is the best place to decode the received stream? Xavier do this in the GetBodyLineNext when the end of document is reached. I think decoding should be done on the fly. What do you mean? Data should be decoded during the receiving, i.e. without having first the whole body? Yes, inde

Re: [twsocket] Adding gzip to HttpCli

2005-07-14 Thread Maurizio Lotauro
Before start, I get your answer from the archive of this ML because it seems that my ISP has lost a whole day of emails :( On 12-Jul-05 02:41:45 Francois PIETTE wrote: a) where is the best place to decode the received stream? Xavier do this in the GetBodyLineNext when the end of documen

Re: [twsocket] Adding gzip to HttpCli

2005-07-15 Thread Francois Piette
ng" Sent: Friday, July 15, 2005 1:55 AM Subject: Re: [twsocket] Adding gzip to HttpCli > Before start, I get your answer from the archive of this ML because > it seems that my ISP has lost a whole day of emails :( > > On 12-Jul-05 02:41:45 Francois PIETTE wrote: > &g

Re: [twsocket] Adding gzip to HttpCli

2005-07-15 Thread Maurizio Lotauro
Scrive Francois Piette <[EMAIL PROTECTED]>: > > So we should consider both. But there is a potential problem. The RFC > > stated that more that one encoding can be applied to the body. We can > > have then a mixed situation. > > Two compression applied one after the other or one compression for a

Re: [twsocket] Adding gzip to HttpCli

2005-07-25 Thread Maurizio Lotauro
On 24-Jul-05 12:01:55 Xavier Le Bris wrote: >Hello, >A contribution to compression with gzip and some answers to Maurizio's >questions : >It is a good idea to put the whole stuff in another unit. >a/ The site 'http://www.pipeboost.com/' works today for me in T_HttpCliGz. >If not, check if zlib.

Re: [twsocket] Adding gzip to HttpCli

2005-07-26 Thread Francois PIETTE
> I don't think that use RcvdStream for receiving compressed data is a > good idea because it will be more delicate to cleanup. Moreover it is > possible that more than one encoding are applied to the body and in > this case the situation will be even worse, not to mention the case > of on the fly

Re: [twsocket] Adding gzip to HttpCli

2005-07-26 Thread Xavier Le Bris
RcvdStream and RcvdCount, I let François suggest the strategy. Regards Xavier - Original Message - From: "Maurizio Lotauro" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Tuesday, July 26, 2005 3:32 AM Subject: Re: [twsocket] Adding gzip to HttpCli On 24

Re: [twsocket] Adding gzip to HttpCli

2005-07-26 Thread Maurizio Lotauro
On 26-Jul-05 20:37:54 Xavier Le Bris wrote: >Hello, Hello, [...] >FGzTime is necessary, not for me, but for anyone who wants to choose the >best compression level/time ratio. I think that this is the job for a test application, not for the component. You can use OnBeforeHeaderSend and OnDocEnd

Re: [twsocket] Adding gzip to HttpCli

2005-07-26 Thread Maurizio Lotauro
On 26-Jul-05 17:47:41 Francois PIETTE wrote: [...] >We already talked about RcvdCount. Yes, but we haven't still get a conclusion :-) >I think I said that RcvdCount that a choice has to be made and Ithat I have >no defitive answer. The idea is to break as less as possible existing code. >RcvdCo

Re: [twsocket] Adding gzip to HttpCli

2005-07-27 Thread Francois Piette
> >I think I said that RcvdCount that a choice has to be made and Ithat I have > >no defitive answer. The idea is to break as less as possible existing code. > >RcvdCount is used for progress bar updating and should be compressed byte > >count. It is also used to allocate storage (or similar use) f

Re: [twsocket] Adding gzip to HttpCli

2005-07-27 Thread Maurizio Lotauro
Scrive Francois Piette <[EMAIL PROTECTED]>: [...] > > I doubt that RcvdCount could be used to allocate storage. The body > > data will be put into RcvdStream that is a stream, and normally a > > stream is able to allocate the storage itself. > > RcvdStream is not the only way to get data from th

Re: [twsocket] Adding gzip to HttpCli

2005-07-27 Thread Francois PIETTE
>> > I doubt that RcvdCount could be used to allocate storage. The body >> > data will be put into RcvdStream that is a stream, and normally a >> > stream is able to allocate the storage itself. >> >> RcvdStream is not the only way to get data from the component. Some (many >> ?) >> applications s

Re: [twsocket] Adding gzip to HttpCli

2005-07-27 Thread Maurizio Lotauro
Scrive Francois PIETTE <[EMAIL PROTECTED]>: > >> RcvdStream is not the only way to get data from the component. Some (many > > >> ?) > >> applications sue > >> OnDocData event to get data on the fly. > > > > In that case the decompression should be made completly by the > > application, or > > s

Re: [twsocket] Adding gzip to HttpCli

2005-07-27 Thread Francois PIETTE
>> >> RcvdStream is not the only way to get data from the component. Some >> >> (many >> >> >> ?) >> >> applications sue >> >> OnDocData event to get data on the fly. >> > >> > In that case the decompression should be made completly by the >> > application, or >> > should we add some support for t

Re: [twsocket] Adding gzip to HttpCli

2005-07-27 Thread Maurizio Lotauro
On 27-Jul-05 18:59:30 Francois PIETTE wrote: [...] >>> If decompression is done on the fly (streaming, we already talked about >>> this), then nothing special is required. >> >> The decompression will be made only if RcvdStream is assigned. >That is not needed. The decompression can be made alwa

Re: [twsocket] Adding gzip to HttpCli

2005-07-28 Thread Francois Piette
> Do you want that the data passed to OnDocData is decompressed? Yes I do. > This could eventually be done only if the class that make the > decompression supports "on the fly", or better if all classes neded > to decompress the body suport it. If the class doesn't support "on the fly" decompres

Re: [twsocket] Adding gzip to HttpCli

2005-07-29 Thread Maurizio Lotauro
On 28-Jul-05 08:34:58 Francois Piette wrote: >> Do you want that the data passed to OnDocData is decompressed? >Yes I do. Are you really sure? Ok Ok, I'll try to do it :-) >> This could eventually be done only if the class that make the >> decompression supports "on the fly", or better if all c

Re: [twsocket] Adding gzip to HttpCli

2005-07-29 Thread Xavier Le Bris
> Xavier, have you any reason to assign to FLastResponse? > No important reason Xavier -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Adding gzip to HttpCli

2005-08-01 Thread Maurizio Lotauro
On 30-Jul-05 01:54:44 Maurizio Lotauro wrote: >On 28-Jul-05 08:34:58 Francois Piette wrote: >>> Do you want that the data passed to OnDocData is decompressed? >>Yes I do. >Are you really sure? Ok Ok, I'll try to do it :-) Done. Now I have some points that I would like to discuss. a) Exceptio