From: Stephen D. <sd...@gm...> - 2006-01-02 08:30:34
|
On 12/31/05, Zoran Vasiljevic <zv...@ar...> wrote: > > Am 31.12.2005 um 19:03 schrieb Vlad Seryakov: > > > Could config option, like 1 second or 10Kbytes > > Yup. For example. This could reduce locking attempts. > Seems fine to me. Right. So the thread handling the upload would lock/unlock every upload_size/10Kbytes or seconds_to_upload. The frequency of locking for the every 10Kbytes case would increase (and hence chance of blocking) with the capacity of your and your clients connection. Another thread would lock/unlock every time the client requests an update on the progress, say once per second. Multiply the above by the number of concurrent clients. That's the price you pay for upload stats and that's OK. I wouldn't want that overhead when I'm not interested in the stats though... |