Althttpd

Timeline
Login

Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

18 check-ins related to "signal-safety"

2024-01-12
13:30
Rework logging steps and cleanup to avoid calling into libc functions which are not signal-safe when handling a signal, as discussed in [forum thread 4dc31619341ce947|4dc31619341ce947]. ... (check-in: 9faea68111 user: stephan tags: trunk)
2024-01-04
12:07
Remove an unused var. ... (Closed-Leaf check-in: 7b35e12f15 user: stephan tags: signal-safety)
12:06
Use clock_gettime() to record the response wall-clock time for logging purposes, as it's signal-safe. ... (check-in: b26779f148 user: stephan tags: signal-safety)
2024-01-02
08:04
Resolve an off-by-half-a-day-of-month conversion in the new logging. ... (check-in: ef5d1a1fe5 user: stephan tags: signal-safety)
2023-12-30
06:46
Disable the TLS cleanup sequence, as that is where at least some portion of the reported hanging processes are hanging. ... (check-in: ff8547f8d7 user: stephan tags: signal-safety)
2023-12-27
18:39
Correct an assert() and placement of an #undef. ... (check-in: 57597a74fa user: stephan tags: signal-safety)
16:08
Fix a silly escaping error which caused duplicated log output in fields which required escaping. ... (check-in: a0318d162d user: stephan tags: signal-safety)
2023-12-21
13:42
End-of-line whitespace cleanups. No functional changes. ... (check-in: 5f16ef03a1 user: stephan tags: signal-safety)
2023-12-20
14:54
Code style cleanups. No functional changes. ... (check-in: 7f61551f2c user: stephan tags: signal-safety)
14:47
Replace use of Escape() in MakeLogEntry() with a non-allocating variant. Testing reminder: it seems that curl is the only http client which does not auto-escape double-quotes in the request string to %22. ... (check-in: db964137c0 user: stephan tags: signal-safety)
2023-12-16
11:19
Add support for -DLOG_PID to append the althttpd pid to the log to assist in debugging hanging althttpd processes, per discussion in /forumpost/4dc31619341ce947. ... (check-in: 1fb1a1c2a5 user: stephan tags: signal-safety)
00:32
Add explicit mode 0640 to the log file open() to avoid system-dependent defaults doing weird things. ... (check-in: 081b3ed27c user: stephan tags: signal-safety)
2023-12-15
19:58
In COMBINED_LOG_FORMAT builds, zero out the tm struct and set tm_isdst to -1. This causes it to render an empty time zone (feature or bug?) where it otherwise renders the local time zone name but UTC time. ... (check-in: f6ff698c53 user: stephan tags: signal-safety)
19:48
Code de-duplication. ... (check-in: cbbb27d1e8 user: stephan tags: signal-safety)
19:38
MakeLogEntry(): replace fopen()/fwrite()/fprintf() with open()/write()/custom formatting. COMBINED_LOG_FORMAT builds still use strftime() because they require date formatting we do not currently implement, but building in that mode reveals warnings which imply that that mode is no longer used. ... (check-in: bb0631a2e4 user: stephan tags: signal-safety)
15:04
In MakeLogEntry(): remove use of strftime() in non-COMBINED_LOG_FORMAT builds, replace gettimeofday() and localtime() with time() (changing the timestamps from local to zulu and reducing log stats to seconds precision). ... (check-in: bb35066b8c user: stephan tags: signal-safety)
2023-12-14
22:48
Initial reworking for signal safety, as per forum post febca13ffc. This is far from ready for use. ... (check-in: 070b08d958 user: stephan tags: signal-safety)
2023-10-14
19:13
Add a note that --root DIR should always been an absolute path. ... (check-in: 2f322f9b58 user: stephan tags: trunk)