From 2840d1134174665f5af1f8f0d0190e12365ad6a5 Mon Sep 17 00:00:00 2001 From: Piotr Duszynski Date: Thu, 1 Aug 2013 22:13:56 +0200 Subject: [PATCH] Small corrections --- src/connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index 0e60599..72e5ded 100755 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -78,7 +78,8 @@ void* process_connection(void *arg) char* msg; while(1) { - + + usleep(100); for(int i = 0; i < MAX_CLIENT_PER_THREAD; i++) { @@ -90,7 +91,7 @@ void* process_connection(void *arg) if(configuration->getConfigValue(OPT_NOT_NMAP_SCANNER)) n = 1; // just reply... else - n = recv(threads[tid].clients[i], buffer,1, 0); + n = recv(threads[tid].clients[i], buffer,1000, 0); // deal with different recv buffer size