From: SourceForge.net <no...@so...> - 2006-01-12 03:12:15
|
Feature Requests item #1393765, was opened at 2005-12-30 17:28 Message generated for change (Settings changed) made by seryakov You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719009&aid=1393765&group_id=130646 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tcl-API Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Vlad Seryakov (seryakov) Assigned to: Vlad Seryakov (seryakov) Summary: Upload Statistis Initial Comment: i have another idea i'd like to discuss before i even start coding a prototype. There is thread on aolserver mailing list about upload prgoress, so i thought would it be a good idea to have global url-specific cache of all uploads, let's say, all requestes with content-length > 0. It will have only 2 alues, current size and total length and will last only for the time of upload. It will belong to Sock structure of the Request, so on close it will be freed as well. Making it url-specific will give Web developer ability to generate uniaue urls for upload and then request statistics, requests with the same url will not override each other, server will update statistics for the first created cache only, subsequent uploads with the same url will not show anything or show old values which is fine for security reasons. Overhead is minimal and it will add one new commmand like ns_upload_stats url. SockRead will handle it all, so no other places are affected. ---------------------------------------------------------------------- Comment By: Vlad Seryakov (seryakov) Date: 2006-01-02 18:01 Message: Logged In: YES user_id=184124 Another patch that makes locking very very light in the driver thread, so if nobody is asking for stats, it will do lock to update 2 integers only, anyway only driver thread handles sockets. ---------------------------------------------------------------------- Comment By: Vlad Seryakov (seryakov) Date: 2005-12-30 18:10 Message: Logged In: YES user_id=184124 More generic patch with using query as well ---------------------------------------------------------------------- Comment By: Zoran Vasiljevic (vasiljevic) Date: 2005-12-30 17:48 Message: Logged In: YES user_id=95086 oh... using request->line sounds better to me (easier). But don't nail me down on that. I yet have to clear with our web-gui guy. ---------------------------------------------------------------------- Comment By: Vlad Seryakov (seryakov) Date: 2005-12-30 17:33 Message: Logged In: YES user_id=184124 also, another option is to use request->line instead of url, this way i can reuse the same url but use different parameters like session id to differentiate different uploads. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719009&aid=1393765&group_id=130646 |