#52 Upload Statistis

Feature Request
closed
1
2006-12-01
2005-12-30
No

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.

Discussion

  • Vlad Seryakov

    Vlad Seryakov - 2005-12-30

    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.

     
  • Zoran Vasiljevic

    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.

     
  • Vlad Seryakov

    Vlad Seryakov - 2005-12-30

    Logged In: YES
    user_id=184124

    More generic patch with using query as well

     
  • Vlad Seryakov

    Vlad Seryakov - 2006-01-02

    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.

     
  • Vlad Seryakov

    Vlad Seryakov - 2006-01-02

    with upload size limit

     
  • Vlad Seryakov

    Vlad Seryakov - 2006-01-12
    • status: open --> closed
     
  • Stephen

    Stephen - 2006-12-01
    • labels: 712186 -->
     
  • Stephen

    Stephen - 2006-12-01
    • labels: --> NaviServer - libnsd, libnsthread, nsd
    • milestone: --> Feature Request
    • priority: 5 --> 1
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks