Remove debugging and set default timeout
While timeout was announced in "client" help page, it wasn't effective. Fixed. Also disable debugging.
This commit is contained in:
parent
ba46e5bb43
commit
78104a8b87
2
Makefile
2
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 := -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 += -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 += `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
|
PYPGMOPTS := ../Python/pypgmopts/pypgmopts
|
||||||
|
|
||||||
LDFLAGS := `pkg-config --libs openssl`
|
LDFLAGS := `pkg-config --libs openssl`
|
||||||
|
@ -130,6 +130,7 @@ static void parse_pgmopts_server(int argc, char **argv) {
|
|||||||
|
|
||||||
static void parse_pgmopts_client(int argc, char **argv) {
|
static void parse_pgmopts_client(int argc, char **argv) {
|
||||||
pgmopts_rw.client = (struct pgmopts_client_t){
|
pgmopts_rw.client = (struct pgmopts_client_t){
|
||||||
|
.timeout_seconds = ARGPARSE_CLIENT_DEFAULT_TIMEOUT,
|
||||||
.port = ARGPARSE_SERVER_DEFAULT_PORT,
|
.port = ARGPARSE_SERVER_DEFAULT_PORT,
|
||||||
.verbosity = ARGPARSE_SERVER_DEFAULT_VERBOSE,
|
.verbosity = ARGPARSE_SERVER_DEFAULT_VERBOSE,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user