From 43a1a5f31ecc130990989a6c164d713629b4d5ed Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 21 Dec 2014 15:44:09 +0100 Subject: increased some buffers and line buffers for worker output --- src/master.c | 4 ++-- src/webserver.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/master.c b/src/master.c index ad266e2..b14acbe 100644 --- a/src/master.c +++ b/src/master.c @@ -469,7 +469,7 @@ void master_output_outstanding_messages( const char *name, char *s, size_t len ) } fseek( wed->spool_file, wed->read_pos, SEEK_SET ); - char line[100]; + char line[1024]; char *cur = s; char *end = s + len; while( wed->read_pos < end_pos ) { @@ -498,7 +498,7 @@ void master_output_tail( const char *name, char *s, size_t len ) char *last_lines[25]; memset( last_lines, 0, sizeof( last_lines ) ); int last_lines_pos = 0; - char line[100]; + char line[1024]; while( pos < end_pos ) { fgets( line, sizeof( line ), wed->spool_file ); if( last_lines[last_lines_pos] != NULL ) { diff --git a/src/webserver.c b/src/webserver.c index 9b62f0e..6be2a46 100644 --- a/src/webserver.c +++ b/src/webserver.c @@ -18,7 +18,7 @@ static int handle_request( void *cls, struct MHD_Connection *connection, fprintf( stderr, "%s http request: %s\n", method, url ); if( strcmp( method, "GET" ) == 0 ) { - char biruda_msg[2048]; + char biruda_msg[8192]; biruda_msg[0] = '\0'; if( strcmp( url, "/status" ) == 0 ) { for( int pos = 0; pos < MAX_COORDINATORS; pos++ ) { -- cgit v1.2.3-54-g00ecf