diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-12-12 10:26:38 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-12-12 10:26:38 +0000 |
commit | da82423dbda5c27ca355c1ad3a22f215c6c8a21b (patch) | |
tree | 2c8f447d3138604e7b49817bbe4ff0ff4aa047f1 /cpp/src/IceGrid/Parser.cpp | |
parent | Added timeouts (diff) | |
download | ice-da82423dbda5c27ca355c1ad3a22f215c6c8a21b.tar.bz2 ice-da82423dbda5c27ca355c1ad3a22f215c6c8a21b.tar.xz ice-da82423dbda5c27ca355c1ad3a22f215c6c8a21b.zip |
Removed maxLines attribute from FileIterator::read() method
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index 74b4b9b292e..f34341aba1e 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -1336,7 +1336,7 @@ Parser::dumpFile(const string& reader, const string& filename, const list<string return; } int lineCount = 20; - const int maxBytes = 512 * 1024; + int maxBytes = _communicator->getProperties()->getPropertyAsIntWithDefault("Ice.MessageSizeMax", 1024) * 1024; if(head || tail) { istringstream is(head ? opts.optArg("head") : opts.optArg("tail")); @@ -1397,7 +1397,7 @@ Parser::dumpFile(const string& reader, const string& filename, const list<string bool eof = false; while(!interrupted() && !eof && i < lineCount) { - eof = it->read(20, maxBytes, lines); + eof = it->read(maxBytes, lines); for(Ice::StringSeq::const_iterator p = lines.begin(); i < lineCount && p != lines.end(); ++p, ++i) { cout << endl << *p << flush; @@ -1409,7 +1409,7 @@ Parser::dumpFile(const string& reader, const string& filename, const list<string bool eof = false; while(!interrupted() && !eof) { - eof = it->read(20, maxBytes, lines); + eof = it->read(maxBytes, lines); for(Ice::StringSeq::const_iterator p = lines.begin(); p != lines.end(); ++p) { cout << endl << *p << flush; @@ -1421,7 +1421,7 @@ Parser::dumpFile(const string& reader, const string& filename, const list<string { while(!interrupted()) { - bool eof = it->read(20, maxBytes, lines); + bool eof = it->read(maxBytes, lines); for(Ice::StringSeq::const_iterator p = lines.begin(); p != lines.end(); ++p) { cout << *p; |