From 5c102fdd1e6825a77bb9d7a69e268868d7f5398e Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 19 Aug 2008 09:28:09 +0000 Subject: Bugfix. Shared connection didn't work with the continue action. --- server/src/server.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/src') 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; -- cgit v1.2.3