Re: [ekhtml-devel] Datacb varies by feedsize, bug?
Brought to you by:
jick
|
From: Jon T. <jt...@p0...> - 2003-07-23 20:34:32
|
That is actually the correct behaviour. It does not buffer up the entire data before calling the callback -- it makes calls to that callback at various times (like when the buffer needs to be flushed to refill and such). If the buffer kept growing, in order for you to get a full data callback, it would potentially take a lot of memory. You'll need to do your own buffering in the callback if you want to deal with the data as a whole. -- Jon On Wednesday, July 23, 2003, at 12:49 PM, Unknown Unknown wrote: > Hello, > > I just started using ekhtml a few weeks ago to parse some ebay html > pages and I am having a problem with the data callback returning > incomplete strings of data. The problem seems to stem from the > feedsize. Some values of the feedsize work fine and others don't, of > course this varies for each file, causing inconsistant parsing > results. > > I have attached a small sample of the program to this e-mail, > hopefully you guys won't mind (it's only 7kb), with an html file that > exhibits the problem. Inside the source file there are two feedsizes, > one exhibiting the problem and one that works fine. Let me know if > this is a bug or if I am doing something incorrectly because I was > under the impression that any feedsize would still result in the same > data returned by the callback. > > The program is run with the command: > ./buffbug < testhtml/1534097125.html > > Thanks for any and all help, > Jacob Abrams > > _________________________________________________________________ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > <buffbug.tgz> |