summaryrefslogtreecommitdiff
path: root/rotord/src/rotord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rotord.cpp')
-rwxr-xr-xrotord/src/rotord.cpp25
1 files changed, 16 insertions, 9 deletions
diff --git a/rotord/src/rotord.cpp b/rotord/src/rotord.cpp
index fefca8e..33031e7 100755
--- a/rotord/src/rotord.cpp
+++ b/rotord/src/rotord.cpp
@@ -139,15 +139,22 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
//on the other hand, some commands need to know state of the renderer?
- vector<string> sc; //method,id,command1,{command2,}{body}
- sc.push_back(request.getMethod());
- for (auto& i: command){
- sc.push_back(i);
- }
- sc.push_back(body);
-
- ((Poco::AutoPtr<Rotor::Render_context>)task)->session_command(sc,XML,status);
-
+ Session_command SC;
+ vector<string> sc; //uid,method,id,command1,{command2,}{body}
+ SC.uid=idGen.createOne().toString();
+ sc.push_back(request.getMethod());
+ SC.method=request.getMethod();
+ for (auto& i: command){
+ sc.push_back(i);
+ SC.commands.push_back(i);
+ }
+ sc.push_back(body);
+ SC.body=body;
+
+ ((Poco::AutoPtr<Rotor::Render_context>)task)->session_command(SC,XML,status);
+ if (XML.tagExists("render_id")){
+ //cerr<<"render started: "<<SC.uid<<" in context: "<<command[0]<<endl;
+ }
}
}
}