summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authordeva <deva>2008-08-19 09:28:09 +0000
committerdeva <deva>2008-08-19 09:28:09 +0000
commit5c102fdd1e6825a77bb9d7a69e268868d7f5398e (patch)
treedc37b25e6ad6045e91cab4e35f5d154a07defe26 /server/src
parent26a6b739a38e928d005ac689e693a4d4dd7dc3ea (diff)
Bugfix. Shared connection didn't work with the continue action.
Diffstat (limited to 'server/src')
-rw-r--r--server/src/server.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index d2921b8..96c5006 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -216,9 +216,9 @@ static std::string handleTransaction(Transaction &transaction)
static void handleConnection(TCPSocket *socket)
{
- size_t bufsize = 256;
+ size_t bufsize = 4096;
int size;
- char buf[256];
+ char buf[bufsize];
memset(buf, 0, bufsize);
Transaction *transaction = NULL;
@@ -233,6 +233,7 @@ static void handleConnection(TCPSocket *socket)
printf("Got %d bytes in read loop\n", size);
if(parser->parse(buf)) {
+ printf("Got complete XML document\n");
socket->write(handleTransaction(*transaction));
delete transaction;