From 78104a8b8746d9e648f0d4886fc9fb329814458f Mon Sep 17 00:00:00 2001 From: Johannes Bauer Date: Fri, 25 Oct 2019 13:24:08 +0200 Subject: [PATCH] Remove debugging and set default timeout While timeout was announced in "client" help page, it wasn't effective. Fixed. Also disable debugging. --- Makefile | 2 +- pgmopts.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a74efca..00dd0bb 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ INSTALL_PREFIX := /usr/local/ CFLAGS := -Wall -Wextra -Wshadow -Wswitch -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Werror=implicit-function-declaration -Werror=format -Wno-unused-parameter CFLAGS += -O3 -std=c11 -pthread -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -DBUILD_REVISION='"$(BUILD_REVISION)"' CFLAGS += `pkg-config --cflags openssl` -CFLAGS += -ggdb3 -DDEBUG -fsanitize=address -fsanitize=undefined -fsanitize=leak +#CFLAGS += -ggdb3 -DDEBUG -fsanitize=address -fsanitize=undefined -fsanitize=leak PYPGMOPTS := ../Python/pypgmopts/pypgmopts LDFLAGS := `pkg-config --libs openssl` diff --git a/pgmopts.c b/pgmopts.c index 5d35376..4cc5190 100644 --- a/pgmopts.c +++ b/pgmopts.c @@ -130,6 +130,7 @@ static void parse_pgmopts_server(int argc, char **argv) { static void parse_pgmopts_client(int argc, char **argv) { pgmopts_rw.client = (struct pgmopts_client_t){ + .timeout_seconds = ARGPARSE_CLIENT_DEFAULT_TIMEOUT, .port = ARGPARSE_SERVER_DEFAULT_PORT, .verbosity = ARGPARSE_SERVER_DEFAULT_VERBOSE, };