Tarek Ziadé wrote:
Add somewhere a table that keeps infos about all live requests, like:
- the current state: receiving | processing
- additional infos:
receiving -> amount to receive / amount received
processing -> what's beeing done (_last_obj_traversed, etc..)
and a few apis to get these infos
this could be hooked in the publisher's request classes in
`processInputs()`, where we get the stream from twisted IIRC
That's interesting, assuming we can put the right hooks in place.
Could slow down the publisher
There's another risk to take into account: security. You'll have to find
a way for the server to make sure it doesn't divulge sensitive
information to the second thread querying it. The server should only
give information to the second thread about any other thread that is
"trusted" with that information.
One way to ensure this would be to have some token passed by the first
thread to the server that would also have to be presented by the second
thread, if it wants info back.
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]
Zope3-dev mailing list