Althttpd

Timeline
Login

Timeline

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

50 most recent check-ins

2024-04-04
18:39
In logtodb, set the domain to NULL if the domain name is malformed. ... (Leaf check-in: c5b12a56fd user: drh tags: trunk)
2024-04-03
00:17
Fix a bug in the --keep mechanism of logtodb.c. ... (check-in: ae62f3b996 user: drh tags: trunk)
2024-03-31
20:27
Merge the new logtodb utility program into trunk. ... (check-in: 5efabec63f user: drh tags: trunk)
20:11
Enhance the logtodb utility so that it adds new fields to the generated SQLite table: robot, cgi, and domain. ... (Closed-Leaf check-in: e0aab048ec user: drh tags: logtodb)
10:52
Improved version of the previous patch. ... (check-in: f51a52d060 user: drh tags: trunk)
10:51
Fix inSignalHandler logging so that it does not report negative CPU times. ... (check-in: 709e7c53f3 user: drh tags: trunk)
2024-03-30
19:59
Improvements to tail following for log files. Add the --keep option. ... (check-in: 08283d4316 user: drh tags: logtodb)
19:03
Initial prototype code for a utility that will read the althttpd log file and convert its content into an SQLite database. ... (check-in: 77462d9b9c user: drh tags: logtodb)
2024-02-22
03:25
Update docs about -auth file, as per report in [/forumpost/3c2f54a9f4]. ... (check-in: 4d3ea9a0f7 user: stephan tags: trunk)
2024-02-21
14:53
There is no need to redirect from "http://domain" over to "http://domain/" if there is no path and the only missing part of the URL is the initial /. See [/forumpost/2eae5437cde4b3d7|forum post 2eae5437cde4b3d7] ... (check-in: d5fe16ad7e user: drh tags: trunk)
2024-02-17
03:22
Replace two stray calls to exit() with althttpd_exit() and remove one unreachable exit(). This hopefully resolves [forum post a86facf2ad|/forumpost/a86facf2ad]. ... (check-in: d4daf4a433 user: stephan tags: trunk)
2024-02-10
21:16
Typo fixes. ... (check-in: c33dd8593d user: drh tags: trunk)
21:13
Further improvements to the docs. ... (check-in: e6a6f88ea6 user: drh tags: trunk)
20:11
Add pointer to the source code header comment documentation in the althttpd.md homepage. ... (check-in: 70682086de user: drh tags: trunk)
19:03
Update the documentation. Split out the setup procedures for systemd, xinetd, and standalone mode into separate documents. ... (check-in: c973ce4892 user: drh tags: trunk)
2024-02-08
08:43
Improve the handling of a signal after exit() is called, as that leads to undefined results in some libc implementations. We now keep track of whether exit() has been called and skip signal handling if a signal is triggered after that. ... (check-in: b60cc28c07 user: stephan tags: trunk)
2024-01-26
03:17
Rework exit() calls so that Timeout() cannot be run after exit(). This is an attempt to work around the problem reported in [/forumpost/9947114e61]. ... (Closed-Leaf check-in: 092234da85 user: stephan tags: signal-after-exit)
2024-01-17
14:40
Audit recent log changes, making improvements to comments. Add mention of the automatic content compression feature to the feature list in the main header comment. Identify ".md" files has text/plain. ... (check-in: c482a5e04d user: drh tags: trunk)
12:27
Rename LOG_PID to ALTHTTPD_LOG_PID because LOG_PID is defined indirectly by syslog.h, causing it to always be defined on some builds. ... (check-in: a0a5f93c36 user: stephan tags: trunk)
11:32
Clarification of compression docs. [/forumpost/42e0976ca2 | Forum post 42e0976ca2]. ... (check-in: 65576c1a41 user: drh tags: trunk)
2024-01-16
18:55
Link to the forum from the new linode+systemd document. ... (check-in: d28d8c770b user: drh tags: trunk)
18:48
New documentation: Tutorial on setting up a new Linode that runs althttpd using systemd. ... (check-in: 376dad8bec user: drh tags: trunk)
17:16
Documentation updates. No changes to code. ... (check-in: 396614330d user: drh tags: trunk)
2024-01-12
13:51
Deal with incomplete writes to the log. This fixes a compiler warning. ... (check-in: e28f313610 user: drh tags: trunk)
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)
13:22
Improvements to robot defenses. ... (check-in: bb0fab2645 user: drh 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 [/forumpost/febca13ffc|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)
2023-08-12
15:02
Fix redundancies in the MIME table. ... (check-in: c0bdc68e6c user: drh tags: trunk)
2023-07-17
16:38
Minor doc correction regarding the --ipshun banish time. ... (check-in: 912c9edca2 user: stephan tags: trunk)
2023-07-16
18:24
Explicitly set SHELL in the makefile for the sake of macos, per request in [/forumpost/fb1d919aa4a173a6|forum post fb1d919aa4a173a6]. ... (check-in: 0c63108b01 user: stephan tags: trunk)
06:44
Resolve inadvertent doc-only fork reported on the forum. ... (check-in: 0e2343e0f1 user: stephan tags: trunk)
2023-07-15
14:06
A 412==>418 typo fix. ... (check-in: 76d5298dce user: stephan tags: trunk)
13:55
Typo in documentation comment. ... (check-in: a91387429d user: drh tags: trunk)
13:49
If a CGI gives a response code of 412 ("I'm a teapot") then initiate blocking of the client IP address, assuming the --ipshun option is used. ... (check-in: 65d01eb339 user: drh tags: trunk)