diff options
author | deva <deva> | 2008-10-08 10:47:25 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-08 10:47:25 +0000 |
commit | 8bbcc59fd1488833a4d8dd346b6e8fec2a0021a8 (patch) | |
tree | 0e55747eba091461ec21f162b295ebb033666c44 /server/src/saxparser.cc | |
parent | e2120257dda4d91b48bb031a96edda810ce30dfb (diff) |
Connections to Pentominos and Database are now persistent over the entire client connection.
Diffstat (limited to 'server/src/saxparser.cc')
-rw-r--r-- | server/src/saxparser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/saxparser.cc b/server/src/saxparser.cc index be7a541..4a69a6c 100644 --- a/server/src/saxparser.cc +++ b/server/src/saxparser.cc @@ -112,6 +112,8 @@ int SAXParser::parse() bool SAXParser::parse(char *data, size_t size) { + printf("parse %d bytes\n", size); + bufferbytes = size; totalbytes += bufferbytes; @@ -129,7 +131,7 @@ bool SAXParser::parse(char *data, size_t size) } } - printf("Got END_OF_DOCUMENT [%s] at %ld\n", outertag.c_str(), XML_GetCurrentByteIndex(p)); + if(done) printf("Got END_OF_DOCUMENT [%s] at %ld\n", outertag.c_str(), XML_GetCurrentByteIndex(p)); return done; } |