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.