Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
static int send_data_to_server(struct fireperf_config* conf, int fd) {
- char buffer[BUFFER_SIZE] = { 0 };
+ char buffer[SOCKET_SEND_BUFFER_SIZE] = { 0 };
ssize_t bytes_sent;
DEBUG(conf, "Sending %zu bytes of data to server\n", sizeof(buffer));
#define MAX_PARALLEL (1 << 20)
-// Set the size of the read/write buffer to 1 MiB
-#define BUFFER_SIZE 1048576
-
// Socket buffer configuration
#define SOCKET_BUFFER_SIZE (64 * 1024)
#define SOCKET_RECV_BUFFER_SIZE SOCKET_BUFFER_SIZE
static int handle_io_on_connection(struct fireperf_config* conf,
struct fireperf_server_stats* stats, int fd) {
- char buffer[BUFFER_SIZE];
+ char buffer[SOCKET_RECV_BUFFER_SIZE];
ssize_t bytes_read;
// Try reading into buffer