| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
bbs_net.c - description |
/* |
| 3 |
------------------- |
* bbs_net |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - user interactive feature of site shuttle |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* This program is free software; you can redistribute it and/or modify * |
|
|
* it under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#include "bbs.h" |
#include "bbs.h" |
| 10 |
#include "common.h" |
#include "common.h" |
| 476 |
} |
} |
| 477 |
else if (nfds == 0) // timeout |
else if (nfds == 0) // timeout |
| 478 |
{ |
{ |
| 479 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 480 |
{ |
{ |
| 481 |
break; |
break; |
| 482 |
} |
} |
| 874 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 875 |
goto cleanup; |
goto cleanup; |
| 876 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 877 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 878 |
{ |
{ |
| 879 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |
| 880 |
goto cleanup; |
goto cleanup; |