Commit graph

136 commits

Author SHA1 Message Date
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
5303bbe5fd Minor refactoring
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 39s
2024-09-10 15:39:16 +09:00
7fec8cc071 Make config reloading more robust
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
2024-09-10 15:34:26 +09:00
31fa6bdd0c Update README.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 10s
2024-09-10 14:00:57 +09:00
bf7bfe5c86 Impl. hot reloading of config and on SIGUSR1
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 40s
Resolves #2
2024-09-10 13:55:16 +09:00
bc879408fe Fix "unfixed" "count" from previous commit
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
2024-09-09 17:01:41 +09:00
615a3e95e5 Fix typo when returning 500 error
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s
2024-09-09 16:59:46 +09:00
952808aefc Minor fixes/cleanup
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s
2024-09-09 13:53:58 +09:00
3bace3286f Refactor "print request headers"
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
Resolves #1
2024-09-09 12:41:15 +09:00
2791714f2c Update third-party submodule SimpleArchiver
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 3s
Also fixes related to the updated third-party submodule.
2024-09-09 11:32:05 +09:00
9294108f13 Impl. print of specific headers arg/option
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
TODO: Maybe refactor this to use a hash-map or something similar to
speed up the process. If N = number-of-headers-to-print and M =
size-of-request-buffer, then currrently this will take O(N*M) time.
2024-09-06 17:30:37 +09:00
fcad980593 Add flag to disable peer address printing
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 33s
Minor teak in main to make Args const.
2024-09-06 16:40:36 +09:00
274f0af887 Debug print only in Debug builds 2024-09-06 16:32:47 +09:00
c9c21105f6 Only allow protocol "HTTP/1.1"
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 33s
2024-09-06 15:57:46 +09:00
c194555527 Add support for different error responses 2024-09-06 15:55:21 +09:00
42d97e03b3 Remove "?" or "#" starting suffixes from path
These suffixes may break loading the correct html template.
2024-09-06 15:33:31 +09:00
0196588f51 Update third party submodule SimpleArchiver
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 33s
2024-09-06 14:30:33 +09:00
3c620d852a update README.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
2024-09-06 13:47:31 +09:00
21f3a3a103 Fix warnings
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
2024-09-06 13:43:25 +09:00
af942c927b Add CMakeLists.txt, update .gitignore 2024-09-06 13:24:28 +09:00
6cfaf4edd8 Update README.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 32s
2024-09-06 13:16:31 +09:00
a9864542b3 Add README.md, ensure listening port is printed
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 2s
2024-09-06 13:11:00 +09:00
d89117430d Minor tweaks/fixes
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 32s
Add example config using "_FILE" variables.

Increase limit of config value size from 256 to 1024.
2024-09-06 12:49:32 +09:00
b12029984f Add more example.config stuff 2024-09-06 12:42:18 +09:00