Skip to content

Commit

Permalink
powerman: increase maximum line length
Browse files Browse the repository at this point in the history
Problem: On very larger clusters command line operations of a large
number of nodes (e.g. node[1,3,5,...,4997,4999]) can exceed internal
buffers, leading to errors.

Increase the internal maximum line length from 8K to 128K, which should
handle any HPC cluster in existence today and larger ones in the future.

Fixes #193
  • Loading branch information
chu11 committed Jun 21, 2024
1 parent ba6a264 commit d4ba511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/powerman/client_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* If not quit, goto 3
*/

#define CP_LINEMAX 8192 /* max request/response line length */
#define CP_LINEMAX 131072 /* max request/response line length */
#define CP_EOL "\r\n" /* line terminator */
#define CP_PROMPT "powerman> " /* prompt */
#define CP_VERSION "001 %s" CP_EOL
Expand Down

0 comments on commit d4ba511

Please sign in to comment.