summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
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;