Commit graph

109 commits

Author SHA1 Message Date
8a5195d5c4 Merge branch 'dev'
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 20s
Resolves #3
2024-09-26 12:59:27 +09:00
aef990f341 Update README.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 21s
2024-09-26 12:38:51 +09:00
700adf2f7b Impl. cache file lifetime checking
By default cache files are invalidated when the are aged for longer than
1 week. This "timeout-time" can be modified with a paramter/argument.
2024-09-26 12:37:45 +09:00
9459ec9313 Reload config file if cache is older than config
Some checks failed
Run Unit Tests / build-and-run-unit-tests (push) Failing after 6s
2024-09-26 11:51:42 +09:00
037845e501 Sleep in test to ensure changed file timestamp
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m45s
2024-09-25 16:23:04 +09:00
83e4a51985 Impl. html cache (mostly done)
Some checks failed
Run Unit Tests / build-and-run-unit-tests (push) Failing after 4s
TODO: Invalidate cache if it is too old.
2024-09-25 16:12:25 +09:00
c4eff1cbaa backport: Fix type set "extra" var on string part
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-25 13:29:13 +09:00
a017fccc27 Fix type when setting "extra" var on string part 2024-09-25 13:28:42 +09:00
8a2dd6770a backport: StringPart's extra type to uintptr_t
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m29s
2024-09-25 13:18:06 +09:00
07153f3588 Update example config
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 9s
2024-09-25 13:16:22 +09:00
4e670d24c8 Change StringPart's extra type to uintptr_t 2024-09-25 13:14:01 +09:00
b9e4e3de5f Impl. c_simple_http_cache_filename_to_path(...) 2024-09-25 13:10:44 +09:00
8eb0578454 backport: "Connection: close" in response headers
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 9s
The current implementation always closes the connection after sending
the response, so it should notify the client to close the connection.
2024-09-24 14:57:29 +09:00
f22a523b45 backport: remove extra '/' in URI, config changes
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-24 14:53:28 +09:00
570da15dab backport: unesc. percent-encoded uri, string parts
Resolves #6
2024-09-24 14:29:46 +09:00
856c205f31 Unescape percent-encoded uri when handling request
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
Resolves #6
2024-09-24 13:16:34 +09:00
fdaaf04600 Use "Connection: close" in response headers
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
The current implementation always closes the connection after sending
the response, so it should notify the client to close the connection.
2024-09-23 19:44:51 +09:00
206cad6f57 Impl. alternate delimeter creating cache-filename
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-23 17:42:02 +09:00
7cc0d624be Fix use-after-free in path-to-filename function
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-23 15:10:39 +09:00
abc61a5504 Impl. path-to-cache-filename, fixes to strip-path
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-23 14:58:28 +09:00
0956ae165e Refactor http_template to use String_Part
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 9s
2024-09-23 14:09:25 +09:00
f8b2f63554 Fix potential memory leak
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
Fixes #5
2024-09-22 19:09:07 +09:00
8974c7b31f Add WIP html_cache
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-22 15:44:04 +09:00
6f845a7185 Add helper to create string parts and combine them 2024-09-22 15:39:35 +09:00
6d5a1d1bdd Minor fix
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-22 14:43:28 +09:00
ffc8e99f73 Add new arg for program: --enable-cache-dir=<DIR> 2024-09-22 14:42:41 +09:00
55d3a61c0c Update .gitignore 2024-09-22 14:26:50 +09:00
7a8582faac Change template generation: output used filenames 2024-09-22 14:26:07 +09:00
f63e96f63d Update third-party submodule SimpleArchiver
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m25s
2024-09-21 18:46:21 +09:00
1416a47e87 Use volatile for global variables
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m26s
These globals are accessed in signal handling, so they need to be
volatile.

Resolves #4
2024-09-21 14:41:02 +09:00
1deec0c564 Update globals to use "fast" int type
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-21 12:02:18 +09:00
2ec617e170 Update third-party submodule SimpleArchiver
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-21 11:59:05 +09:00
13ccc1b3bd Use stdint.h types instead of int, long, etc.
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-20 21:45:51 +09:00
5cc0c37d45 Update third_party submodule SimpleArchiver 2024-09-20 21:45:18 +09:00
47d7f0396d Add tests for c_simple_http_strip_path(...)
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 1m30s
2024-09-16 12:04:21 +09:00
f15452baa4 Fix case where URL has extra trailing '/'
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-16 11:20:15 +09:00
ea88466a98 Update third-party submodule SimpleArchiver
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 16s
2024-09-13 11:40:01 +09:00
371c180cc7 Minor fix
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-12 14:55:51 +09:00
8091c097b6 Minor fix to Makefile
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-11 13:28:06 +09:00
30e0753ba8 CI: Run unit tests on Release build as well
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 7s
2024-09-11 13:20:21 +09:00
09b88f75c2 Update Makefile
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
Some cleanup.
Use certain build flags only in "RELEASE" mode.
2024-09-11 13:11:55 +09:00
17ccacf708 Revert "Update CMakeLists.txt"
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
This reverts commit 4aa338c9c3.

The compiler flags added by this commit was already handled.
2024-09-11 13:03:15 +09:00
4aa338c9c3 Update CMakeLists.txt
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
2024-09-11 13:01:09 +09:00
4f1629d175 Update CMakeLists.txt
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
2024-09-11 12:58:29 +09:00
703b759d43 Add hardening compiler flags to Makefile
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
2024-09-11 12:56:00 +09:00
7d6213a91d Update third-party submodule SimpleArchiver 2024-09-11 12:49:01 +09:00
b22556ec6f Cleanup: removed unused pointer in internal struct
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
2024-09-10 21:44:10 +09:00
051be910f3 Fix potential "strlen(NULL)"
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 38s
2024-09-10 21:18:10 +09:00
57c0812c24 Minor refactoring/fixes
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 38s
2024-09-10 19:22:47 +09:00
a56adb171f Minor refactoring
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 39s
2024-09-10 18:01:45 +09:00