Skip to content

Commit

Permalink
Changed idle timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanLucPons committed May 26, 2020
1 parent 775fcf0 commit 755f8eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
#define SEND_PERIOD 2.0

// Timeout before closing connection idle client in sec
#define CLIENT_TIMEOUT 300.0
#define CLIENT_TIMEOUT 3600.0

#endif //CONSTANTSH
2 changes: 1 addition & 1 deletion Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ bool Kangaroo::HandleRequest(TH_PARAM *p) {

while( p->isRunning ) {

// Wait for command (5min timeout)
// Wait for command (1h timeout)
nbRead = Read(p->clientSock,(char *)(&cmdBuff),1,(int)(CLIENT_TIMEOUT*1000.0));
if(nbRead<=0) {
::printf("\nClosing connection with %s\n",p->clientInfo);
Expand Down

0 comments on commit 755f8eb

Please sign in to comment.