X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d1b858e20ffcf99c42a9943e44fc13fb84571d64..c94bf8a43922c544b485e50ea1f37f41a45821f5:/projects/sgauthstress/user.cpp

diff --git a/projects/sgauthstress/user.cpp b/projects/sgauthstress/user.cpp
index 59487915..944907fe 100644
--- a/projects/sgauthstress/user.cpp
+++ b/projects/sgauthstress/user.cpp
@@ -1,5 +1,7 @@
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <unistd.h> // close
 
 #include <cstring>
 #include <cerrno>
@@ -15,8 +17,8 @@ USER::USER(const std::string & l,
     : login(l),
       password(pwd),
       ip(i),
-      aliveTimeout(0),
-      userTimeout(0),
+      aliveTimeout(5),
+      userTimeout(60),
       phase(1),
       phaseChangeTime(0),
       rnd(0),
@@ -51,7 +53,7 @@ if (sock > 0)
     close(sock);
 }
 
-const USER & USER::operator=(const USER & rvalue)
+USER & USER::operator=(const USER & rvalue)
 {
 login = rvalue.login;
 password = rvalue.password;