diff --git a/src/BuildTiles/Parallel/client.cxx b/src/BuildTiles/Parallel/client.cxx index 7adc8211..76c01f70 100644 --- a/src/BuildTiles/Parallel/client.cxx +++ b/src/BuildTiles/Parallel/client.cxx @@ -52,7 +52,7 @@ using std::cout; using std::cerr; using std::endl; -#define MAXBUF 1024 +#define MAXBUF 16384 #define BUSY_WAIT_TIME 30 using std::string; @@ -145,7 +145,7 @@ long int get_next_task( const string& host, int port, long int last_tile ) { long int tile; int sock, len; fd_set ready; - char message[256]; + char message[MAXBUF]; // loop till we get a socket connection while ( (sock = make_socket( (char *)host.c_str(), port )) < 0 ) { @@ -175,7 +175,7 @@ long int get_next_task( const string& host, int port, long int last_tile ) { if ( FD_ISSET(sock, &ready) ) { /* input coming from socket */ - if ( (len = read(sock, message, 1024)) > 0 ) { + if ( (len = read(sock, message, MAXBUF)) > 0 ) { message[len] = '\0'; tile = atoi(message); cout << " tile to construct = " << tile << endl; diff --git a/src/BuildTiles/Parallel/server.cxx b/src/BuildTiles/Parallel/server.cxx index a0c9ea4d..684e4a1f 100644 --- a/src/BuildTiles/Parallel/server.cxx +++ b/src/BuildTiles/Parallel/server.cxx @@ -41,7 +41,7 @@ using std:: string ; # define WAIT_ANY (pid_t)-1 #endif -#define MAXBUF 1024 +#define MAXBUF 16384 static double start_lon, start_lat; static double lat = 0.0;