From ba267a32fd076d18623c5949695785f4d6db8289 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Thu, 20 Feb 2014 17:44:47 +0000 Subject: [PATCH] squashed warning in read_from_socket --- mongoose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index eef517664..8b17cff54 100644 --- a/mongoose.c +++ b/mongoose.c @@ -102,7 +102,6 @@ typedef SOCKET sock_t; #include <pthread.h> #include <stdarg.h> #include <unistd.h> -#include <signal.h> #include <arpa/inet.h> // For inet_pton() when NS_ENABLE_IPV6 is defined #include <netinet/in.h> #include <sys/socket.h> @@ -648,6 +647,7 @@ static void read_from_socket(struct ns_connection *conn) { conn->flags &= ~NSF_CONNECTING; ret = getsockopt(conn->sock, SOL_SOCKET, SO_ERROR, (char *) &ok, &len); + (void) ret; #ifdef NS_ENABLE_SSL if (ret == 0 && ok == 0 && conn->ssl != NULL) { int res = SSL_connect(conn->ssl); @@ -856,6 +856,7 @@ struct ns_connection *ns_connect(struct ns_server *server, const char *host, conn->sock = sock; conn->connection_data = param; conn->flags = NSF_CONNECTING; + conn->last_io_time = time(NULL); #ifdef NS_ENABLE_SSL if (use_ssl && -- GitLab