summaryrefslogtreecommitdiffstats
path: root/src/core.c
Commit message (Collapse)AuthorAgeFilesLines
* #1043 fix timeout refreshOpenGnSys Support Team2021-11-231-12/+10
| | | | | as described by man(3) ev, to make it work with ev_timer_again() otherwise timer might not ever expire.
* #1064 revisit error handling from ogClientOpenGnSys Support Team2021-11-121-3/+0
| | | | | | | | | | | | | | | | | | | | 200 => successful command, run next pending command 202 => successful command in progress, do not run next pending command 403 => server sent a malformed HTTP header, should not ever happen, close connection (server is buggy?). 500 => client fails to run command, report error and run next pending command 503 => client is busy, report error and do not run next pending command Anything else, should not ever happen (client is buggy?), close connection with client. On error, when processing response from ogClient, do not close the connection, instead annotate in the database that command was not successful and run next pending command. *Only* if client replies status code 500 set last_cmd to UNSPEC so its state is not BSY as reported by og_client_status function and pending cmds can be sent.
* #1061 add timeout to pending scheduled commandsJose M. Guisado2021-09-061-0/+11
| | | | | | | | | | | Pending schedule commands can deny ogLive boot of clients due to filling of pending cmd queue with commands such as "Iniciar Sesión". For example: Using RemotePC to serve clients that do not boot into ogLive will fill up the pending command queue with "Iniciar Sesión". Introduce a safety timeout for pending (scheduled) commands to avoid this situation.
* ogServer is AGPLv3+OpenGnSys Support Team2021-05-041-2/+3
| | | | Update license header in files.
* #915 only API REST is supportedOpenGnSys Support Team2021-05-041-6/+3
| | | | Socket hidra API has been removed, all connections use a REST API.
* #580 remove old keepalive codeOpenGnSys Support Team2021-05-041-23/+2
| | | | Needed by the old socket Hydra that does not exist anymore
* #1043 add WOL_SENT stateOpenGnSys Support Team2021-04-291-0/+6
| | | | | WOL_SENT tells that WakeOnLan was sent to computer, after 60 seconds, if computer does not boot, this state is released.
* #980 Broken TCP connection times out after 120 seconds through keepaliveOpenGnSys Support Team2021-04-221-0/+12
| | | | | Enable TCP keepalive to detect if the ogClient is gone (hard reset). If no reply after 120 seconds, then release the connection to the client.
* #1021 remove LOG_DEBUG syslogOpenGnSys Support Team2021-02-041-20/+0
| | | | | | | Some distros enable *.* in syslog.conf to add all logging information to /var/log/syslog. The existing LOG_DEBUG syslog() entries that ogserver generates fill up the log files very quickly. Remove most of the LOG_DEBUG syslog() calls.
* #998 disable incremental image APIOpenGnSys Support Team2020-08-141-17/+0
| | | | This API is not supported by ogClient yet and it uses the obsolete socket hydra API.
* #971 rename sources folder to srcOpenGnSys Support Team2020-06-261-0/+433
Use the same folder as in ogClient.