Skip to content

Commit

Permalink
Reduce session timeout after 10 minutes.
Browse files Browse the repository at this point in the history
This should work, since firmware have keep-alive function sending a
message every 1 minute.
  • Loading branch information
trekawek committed Aug 11, 2024
1 parent fce26ca commit dc96968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define MAX_SESSIONS 4096 /* maximum number of opened sessions */
#define MAX_SESSIONS_PER_IP 4096 /* maximum number of sessions from a single IP */
#define MAX_TCP_CONN 4096 /* maximum number of TCP connections */
#define SESSION_TIMEOUT 21600 /* Sessions are thrown out after no contact for this many seconds. 0 = no timeout */
#define SESSION_TIMEOUT 600 /* Sessions are thrown out after no contact for this many seconds. 0 = no timeout */
#define CONN_TIMEOUT 600 /* TCP connections are thrown out after no contact for this many seconds. 0 = no timeout */
#define TNFS_HEADERSZ 4 /* minimum header size */
#define TNFS_MAX_PAYLOAD (MAXMSGSZ - TNFS_HEADERSZ - 1) /* Maximum usuable payload in a UDP datagram (-1 for status byte) */
Expand Down

0 comments on commit dc96968

Please sign in to comment.