From: "T. Onoma" Date: 2003-11-15T18:02:09+09:00 Subject: Re: open-uri patch, added progress_proc hook Tanaka Akira wrote: > I don't like that. > > * It is not called if content is empty. hmm...there may be noting to do about it. just have to live with it. > * It may inform users that total may change. but it is changing. only happens on redirect right? not much data 200 bytes? i doubt would be even notice it would go by so fast. > * It cannot request progress without total, or total without progress. yes. that's not nice. > When an user know total by some applilcation specific way, total is useless. > Although calculating total is no problem in HTTP, it require another > network traffic in FTP. yuk. but only need to do if total is requested perhaps? > > perhaps just convert nil to 0 instead and it will be a little better? > > It unify "total size is unknown" and "total size is 0". > I think it should be distinguishable. how can total length ever be 0? if 0 it must be unknown. having a nil means having to take exception for nil type in proc. i think maybe just leave out total for now. perhaps better idea will turn up later. maybe :progress_with_total_proc, if problems can be resolved. have you thought of better idea? -t0