summaryrefslogtreecommitdiff
path: root/server/src/transactionhandler.cc
diff options
context:
space:
mode:
authordeva <deva>2010-05-07 12:36:13 +0000
committerdeva <deva>2010-05-07 12:36:13 +0000
commit016e4ba553044edee32c2a20ee34463ad82106e8 (patch)
tree8fdde7232ee847ba39eb94449b18fd3de7bb4fb8 /server/src/transactionhandler.cc
parent965e43178736e6635cf27410e6d73f4ec0fdced2 (diff)
Use connection object instead of struct and make xml parsing on-the-fly instead of collecting all data first.
Diffstat (limited to 'server/src/transactionhandler.cc')
-rw-r--r--server/src/transactionhandler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/transactionhandler.cc b/server/src/transactionhandler.cc
index 7a45800..662896b 100644
--- a/server/src/transactionhandler.cc
+++ b/server/src/transactionhandler.cc
@@ -219,8 +219,9 @@ static std::string handleRequest(Transaction &transaction, Environment &env,
if(completed) {
answer += " <resume>";
- answer += db->getResume(transaction.cpr, macro, time(NULL) -
- Conf::db_max_ttl);
+ answer += xml_encode(db->getResume(transaction.cpr,
+ macro,
+ time(NULL) - Conf::db_max_ttl));
answer += "</resume>\n";
}