Introduction
Introduction Statistics Contact Development Disclaimer Help
added waitall flag for socket - fiche - A pastebin adjusted for gopher use
git clone git://vernunftzentrum.de/fiche.git
Log
Files
Refs
LICENSE
---
commit 2d5e5c9c3156c9a1c2acf4469a55e2cfafef525e
parent 0f7583f3ed375841540d284f83047b727942af97
Author: solusipse <[email protected]>
Date: Fri, 13 Sep 2013 20:28:01 +0200
added waitall flag for socket
Diffstat:
fiche.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/fiche.c b/fiche.c
@@ -58,7 +58,7 @@ void *thread_connection(void *args)
int n;
char buffer[BUFSIZE];
bzero(buffer, BUFSIZE);
- int status = recv(connection_socket, buffer, BUFSIZE, 0);
+ int status = recv(connection_socket, buffer, BUFSIZE, MSG_WAITALL);
if (BANLIST != NULL)
if (check_banlist(data.ip_address) != NULL)
@@ -102,7 +102,7 @@ void perform_connection(int listen_socket)
int connection_socket = accept(listen_socket, (struct sockaddr *) &client_…
struct timeval timeout;
- timeout.tv_sec = 10;
+ timeout.tv_sec = 120;
timeout.tv_usec = 0;
if (setsockopt (connection_socket, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeo…
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.