Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6 and this project adheres to
7 [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
9 ## [Unreleased]
10
11 ## [1.3.3] - 2026-06-11
12
13 ### Added
14
15 - ci: Add a dedicated CodeQL scanning job targeting GitHub Actions workflows
16 while streamlining the C/C++ analysis job
17 ([d8e07c0](https://github.com/fangfufu/httpdirfs/commit/d8e07c0a62e1b465d51034afb07cec02b9814076),
18 [c02c0d1](https://github.com/fangfufu/httpdirfs/commit/c02c0d1d8a7ee7bd474ce340dc5e48aac4d0c68b)).
19
20 ### Changed
21
22 - Update and expand `USAGE.md` to comprehensively document raw help options and
23 FUSE/module flags, linking to Git commit `0855c0a`
24 ([2bc5306](https://github.com/fangfufu/httpdirfs/commit/2bc5306da9155998a666e138379440c95029cdbf)).
25 - ci: Update pre-commit hook revisions for `pre-commit-hooks`, `codespell`,
26 `mdformat`, and `yamlfmt`
27 ([8cf9d4c](https://github.com/fangfufu/httpdirfs/commit/8cf9d4c9aa1a989f1b3ef0466e8b09a84ff2aa64)).
28 - test: Update unity test framework subproject wrap file to track the latest
29 master branch commit
30 ([2b4c765](https://github.com/fangfufu/httpdirfs/commit/2b4c7654a772e275bdc014ddd3d51f39152a9ee3)).
31 - ci: Replace legacy Prettier hooks with `yamlfmt` and `mdformat` (with GFM and
32 alerts plugins) to format all Markdown and YAML files repo-wide, removing
33 obsolete formatting bypass tags
34 ([a7d2931](https://github.com/fangfufu/httpdirfs/commit/a7d2931699ae98e847df4a14594601a7935af45b)).
35 - ci: Restrict automated pull request pre-commit hook runs to branches targeting
36 the `master` branch
37 ([30dac3e](https://github.com/fangfufu/httpdirfs/commit/30dac3e231263f4f4b22a48ba3e1423c37f1af24)).
38 - ci: Modernize pre-commit configuration readability with clean multi-line block
39 literal scripts and structure the `PKG_CONFIG_PATH` definition in `build.yml`
40 incrementally
41 ([4c8f561](https://github.com/fangfufu/httpdirfs/commit/4c8f56113b4c7674bd95446f7060792946fc1fec)).
42 - doc: Fix grammar regarding parsing options in `README.md`
43 ([3746293](https://github.com/fangfufu/httpdirfs/commit/374629327241405a557e1b5226e1d35ff9d3bbe2)).
44
45 ### Fixed
46
47 - ci: Harden GitHub Actions workflows (`build.yml` and `pre-commit.yml`) by
48 explicitly defining read-only contents permissions to resolve CodeQL workflow
49 permissions alerts
50 ([81b87a0](https://github.com/fangfufu/httpdirfs/commit/81b87a03dd7c21858e89c8b86b3bfb16b2489eb9),
51 [52b9baa](https://github.com/fangfufu/httpdirfs/commit/52b9baa0414345d253738e471b82b01e61e148c5)).
52 - doc: Fix typos in documentation
53 ([ca848fc](https://github.com/fangfufu/httpdirfs/commit/ca848fc657b4fb60467070d1123fd9b0f839c154)).
54
55 ## [1.3.2] - 2026-05-29
56
57 ### Added
58
59 - Add opt-in `--external-links` feature to parse absolute cross-origin directory
60 links from HTML listings and expose them as local files and subdirectories,
61 featuring first-wins deduplication and same-origin scoping of headers and
62 credentials ([edce0ca](https://github.com/fangfufu/httpdirfs/commit/edce0ca)).
63 - Add persistent caching support for external links, mapping and sanitizing
64 cache paths dynamically to prevent directory traversal
65 ([855e134](https://github.com/fangfufu/httpdirfs/commit/855e134)).
66 - Introduce comprehensive unit and integration tests verifying external links
67 detection, filename sanitization, same-origin credential isolation, cache
68 mapping, and robust error handling
69 ([edce0ca](https://github.com/fangfufu/httpdirfs/commit/edce0ca),
70 [855e134](https://github.com/fangfufu/httpdirfs/commit/855e134)).
71 - Add `--cache-min-size` and `--cache-max-size` command-line flags and
72 configuration options to dynamically enforce file size thresholds for
73 persistent caching
74 ([1547e39](https://github.com/fangfufu/httpdirfs/commit/1547e39)).
75 - Introduce unit and integration tests verifying caching thresholds, including
76 boundary conditions and bypass behavior
77 ([1547e39](https://github.com/fangfufu/httpdirfs/commit/1547e39)).
78
79 ### Changed
80
81 - Update macOS build job in GitHub Actions workflow to only run unit tests and
82 exclude integration tests, which are unsupported due to the lack of
83 FUSE/macFUSE in the GitHub Actions runner environment
84 ([93bb8b5](https://github.com/fangfufu/httpdirfs/commit/93bb8b5)).
85 - Optimize macOS CI workflow by removing redundant packages (`openssl`, `curl`,
86 and `pkg-config`) from the brew installation step, as these are pre-installed
87 in the runner environment
88 ([bd3503c](https://github.com/fangfufu/httpdirfs/commit/bd3503c)).
89 - Suppress zero-length file checks in the long integration test suite,
90 preventing redundant skip messages when running integration tests under the
91 long profile since zero-length files are only generated under the short
92 profile ([e8c6e16](https://github.com/fangfufu/httpdirfs/commit/e8c6e16)).
93 - Rewrite and expand `USAGE.md` into a comprehensive reference manual detailing
94 all 35 command-line flags, option syntax, security considerations, and
95 defaults ([37bb031](https://github.com/fangfufu/httpdirfs/commit/37bb031)).
96 - Implement complete dynamic global state reset in `tearDown()` in
97 `tests/test_link.c` to prevent configuration and root link table mutations
98 from leaking between unit tests
99 ([1a13d41](https://github.com/fangfufu/httpdirfs/commit/1a13d41)).
100 - Improve integration test compatibility with BSD and macOS systems by replacing
101 GNU-specific `find -print -quit` options with portable POSIX pipelines using
102 `head -n 1` ([47d79de](https://github.com/fangfufu/httpdirfs/commit/47d79de)).
103
104 ### Fixed
105
106 - Fix origin validation by canonicalizing default ports (HTTP/80 and HTTPS/443)
107 in `is_cross_origin()` checks, ensuring same-origin URLs utilizing default
108 ports are not misclassified as cross-origin
109 ([7ca2f2a](https://github.com/fangfufu/httpdirfs/commit/7ca2f2a)).
110 - Fix argument parsing and help output when parsing `--help` or `--version`
111 options internally
112 ([860453a](https://github.com/fangfufu/httpdirfs/commit/860453a)).
113 - Harden argument parsing error handling by terminating early with
114 `exit(EXIT_FAILURE)` instead of returning non-zero error codes from
115 `parse_arg_list`
116 ([8d13093](https://github.com/fangfufu/httpdirfs/commit/8d13093)).
117
118 ## [1.3.1] - 2026-05-27
119
120 ### Added
121
122 - Add comprehensive unit and integration tests for duplicate URL handling,
123 including unit tests for `linknames_equal`, `hash_str`, `LinkHashSet`
124 operations, and `LinkTable_parse_html`
125 ([4534563](https://github.com/fangfufu/httpdirfs/commit/4534563)).
126 - Extend the system integration test HTTP server to inject duplicate URLs and
127 directories, and implement mounted directory integration tests to verify
128 robust FUSE duplicate deduplication
129 ([4534563](https://github.com/fangfufu/httpdirfs/commit/4534563)).
130 - Expose and document internal `LinkHashSet` operations and comparison helpers
131 in `link.h` using Doxygen
132 ([4534563](https://github.com/fangfufu/httpdirfs/commit/4534563)).
133
134 ### Changed
135
136 - Optimize duplicate link detection during HTML parsing by replacing the
137 $O(N^2)$ linear scan in `HTML_to_LinkTable` with a custom open-addressing hash
138 set (`LinkHashSet`) using linear probing and a djb2-based `hash_str` function
139 ([26c0c5c](https://github.com/fangfufu/httpdirfs/commit/26c0c5c)).
140 - Refine HTTP version negotiation behavior in `Link_to_curl` to gracefully fall
141 back to HTTP/2 (`CURL_HTTP_VERSION_2_0`) if negotiation for HTTP/3
142 (`CURL_HTTP_VERSION_3`) is unsupported or fails
143 ([5de0dd6](https://github.com/fangfufu/httpdirfs/commit/5de0dd6)).
144
145 ### Fixed
146
147 - Fix formatting in error log outputs by adding missing newlines (`\n`) to
148 multiple `lprintf(error, ...)` calls logging curl easy setup/info errors in
149 `src/link.c` and `src/network.c`
150 ([2f5cf96](https://github.com/fangfufu/httpdirfs/commit/2f5cf96)).
151
152 ## [1.3.0] - 2026-05-27
153
154 Creating a new minor release, because of the following major changes:
155
156 - The new threading model of the cache system, which allows multiple downloads
157 (blocking foreground and background) to be done simultaneously.
158 - When cache system is enabled, the downloading thread yields as soon as there
159 is enough data to reply to the FUSE read call.
160 - New pre-commit hooks to help developers to maintain a basic level of quality
161 in each commit.
162 - New unit tests which test individual software components.
163 - New system integration tests which launch a HTTP server, then mount it for
164 read testing. There are two variants:
165 - A short test which tests the filesystem against different edge case
166 filenames.
167 - A long test which do multithread read on a 1GB file with different block
168 sizes.
169
170 ### Added
171
172 - Dynamically scale the number of background prefetch worker threads to match up
173 to half of the maximum concurrent connection capacity (`CONFIG.max_conns`
174 capped at `DEFAULT_NETWORK_MAX_CONNS`), transitioning from a single hardcoded
175 thread to improve performance when multiple concurrent active downloads are
176 supported ([2c39a7a](https://github.com/fangfufu/httpdirfs/commit/2c39a7a)).
177 - Add a unit test `test_Cache_alloc_num_bg_workers` to verify correct background
178 worker allocation scaling under different network connection capacities
179 ([2c39a7a](https://github.com/fangfufu/httpdirfs/commit/2c39a7a)).
180 - Implement a thread-safe manual reference-counting mechanism
181 (`ActiveDownload_ref` and `ActiveDownload_unref`) for `ActiveDownload` nodes
182 to prevent Use-After-Free (UAF) vulnerabilities during concurrent read
183 operations, background transfers, and cache teardown
184 ([9c34463](https://github.com/fangfufu/httpdirfs/commit/9c34463)).
185 - Add a unit test `test_Cache_free_active_downloads` to verify that active
186 download nodes are not prematurely freed while waiter threads are still active
187 ([9c34463](https://github.com/fangfufu/httpdirfs/commit/9c34463)).
188 - Implement a robust shutdown handshake mechanism in `Cache_free` to coordinate
189 safe cache teardown when reader threads are actively blocked on segment
190 downloads, ensuring all threads unregister before mutexes and condition
191 variables are destroyed
192 ([a01c9b1](https://github.com/fangfufu/httpdirfs/commit/a01c9b1)).
193 - Add a unit test `test_Cache_free_active_downloads_with_waiters` to exercise
194 and verify proper thread synchronization and early-exit cleanup during cache
195 shutdown ([a01c9b1](https://github.com/fangfufu/httpdirfs/commit/a01c9b1)).
196 - Add standardized GPLv3/OpenSSL copyright headers and detailed Doxygen
197 file-level `\brief` annotations to all C source and header files under the
198 `src/` directory to improve legal compliance and maintain consistent
199 documentation headers
200 ([f621da7](https://github.com/fangfufu/httpdirfs/commit/f621da7),
201 [666d53a](https://github.com/fangfufu/httpdirfs/commit/666d53a)).
202 - Add `CURLOPT_PIPEWAIT` setting to curl easy handles to optimize HTTP/2
203 multiplexing during concurrent file and directory transfers
204 ([4114977](https://github.com/fangfufu/httpdirfs/commit/4114977)).
205 - Support HTTP/3 (QUIC) protocol version negotiation with automatic and seamless
206 fallback to HTTP/2 or HTTP/1.1 when unavailable
207 ([4114977](https://github.com/fangfufu/httpdirfs/commit/4114977)).
208 - Implement shutdown memory leak detection in `DEBUG` builds, recursively
209 traversing the virtual filesystem at shutdown to tear down resources and
210 verify that no memory leaks exist
211 ([30d7d10](https://github.com/fangfufu/httpdirfs/commit/30d7d10)).
212 - Add FUSE `.opendir` and `.releasedir` handlers to safely evict directories
213 (`LinkTable`s) from memory when they are no longer in use, using an atomic
214 reference-counting strategy to prevent crashes in other subsystems
215 ([2fff24a](https://github.com/fangfufu/httpdirfs/commit/2fff24a)).
216 - Introduce a comprehensive unit test suite `test_memory_tracking` to validate
217 correct allocation, reallocation, and free behavior of debug allocator
218 wrappers ([9b38614](https://github.com/fangfufu/httpdirfs/commit/9b38614)).
219 - Implement asynchronous early-return download support in cache mode to improve
220 read performance during ongoing background downloads
221 ([0fb2d06](https://github.com/fangfufu/httpdirfs/commit/0fb2d06)).
222 - Introduce robust logging and error-checking wrappers for pthread condition
223 variable APIs (`PTHREAD_COND_INIT`, `PTHREAD_COND_DESTROY`,
224 `PTHREAD_COND_BROADCAST`, and `PTHREAD_COND_WAIT`)
225 ([af0e263](https://github.com/fangfufu/httpdirfs/commit/af0e263)).
226 - Support concurrent background segment downloads in cache mode by replacing the
227 single active download tracker with a linked list of `ActiveDownload` structs;
228 add `ActiveDownload_find`, `ActiveDownload_add`, and `ActiveDownload_remove`
229 helpers and implement double-checked locking in `Cache_read_segment` to
230 prevent duplicate downloads under concurrent FUSE workers
231 ([7286314](https://github.com/fangfufu/httpdirfs/commit/7286314)).
232 - Add unit test for `ActiveDownload_find` verifying lookup behavior on both
233 empty and populated active download lists
234 ([0441ced](https://github.com/fangfufu/httpdirfs/commit/0441ced)).
235 - Define a custom `sys_sem_t` type and emulate unnamed POSIX semaphores
236 (`sem_init`, `sem_destroy`, `sem_wait`, `sem_post`, and `sem_trywait`) using
237 pthread mutex and condition variables on Apple/macOS platforms, where unnamed
238 POSIX semaphores are unsupported
239 ([af24b36](https://github.com/fangfufu/httpdirfs/commit/af24b36)).
240 - Add zero-length file coverage to integration and unit test suites, including a
241 dedicated test group verifying size, content, and SHA-256 digest in both
242 direct and cache modes; add unit tests for negative-len, NULL `cf`, and NULL
243 `cf->link` guards in `Cache_read`
244 ([d02ac05](https://github.com/fangfufu/httpdirfs/commit/d02ac05)).
245
246 ### Changed
247
248 - Transition from a single global condition variable (`dl_cond`) to granular,
249 block-specific condition variables integrated directly within `ActiveDownload`
250 nodes to eliminate redundant wakeups of unrelated FUSE waiter threads and
251 reduce thread scheduling overhead
252 ([a40bd74](https://github.com/fangfufu/httpdirfs/commit/a40bd74)).
253 - Optimize the cache wait loop inside `Cache_read_segment` to check status in
254 $O(1)$ time by introducing an `unlinked` state flag on the `ActiveDownload`
255 structure, avoiding expensive $O(N)$ list lookups on every loop iteration
256 ([42a4dd3](https://github.com/fangfufu/httpdirfs/commit/42a4dd3)).
257 - Clean up and standardize `#include` directives across all source files,
258 headers, and test suites, using forward struct declarations to break circular
259 dependency chains
260 ([94ced41](https://github.com/fangfufu/httpdirfs/commit/94ced41)).
261 - Extract common cache test setup logic into dedicated helper functions
262 (`setup_mock_link_table` and `setup_temp_cache_dir`) inside
263 `tests/test_cache.c`
264 ([2c39a7a](https://github.com/fangfufu/httpdirfs/commit/2c39a7a)).
265 - Replace raw octal literals with symbolic permission constants (such as
266 `S_IRWXU`) in test directory creation calls to address SonarCloud security
267 hotspot alerts
268 ([2c39a7a](https://github.com/fangfufu/httpdirfs/commit/2c39a7a)).
269 - Update `README.md` to document the permanent cache thread-safety improvements,
270 including granular signaling, manual reference counting, and the shutdown
271 handshake mechanism
272 ([7eea0ea](https://github.com/fangfufu/httpdirfs/commit/7eea0ea)).
273 - Update `USAGE.md` to document the `--proxy-capath` and `--capath` flags,
274 update the default value of `--max-conns` to 6, and update internal commit
275 reference links
276 ([1864cce](https://github.com/fangfufu/httpdirfs/commit/1864cce),
277 [7bcbcb2](https://github.com/fangfufu/httpdirfs/commit/7bcbcb2),
278 [7d76285](https://github.com/fangfufu/httpdirfs/commit/7d76285)).
279 - Lower the default maximum network connection count
280 (`DEFAULT_NETWORK_MAX_CONNS`) from `10` to `6` to align with the standard
281 persistent connection limits agreed upon by all major modern web browsers
282 ([c049e6d](https://github.com/fangfufu/httpdirfs/commit/c049e6d)).
283 - Update `tests/test_config.c` configuration initialization test to assert
284 `max_conns` against the configuration macro instead of a hardcoded value
285 ([c049e6d](https://github.com/fangfufu/httpdirfs/commit/c049e6d)).
286 - Optimize GitHub Actions workflows by separating short and long integration
287 tests and removing redundant manual pre-commit hook stages to avoid duplicate,
288 slow sequential CI execution
289 ([86b0e8e](https://github.com/fangfufu/httpdirfs/commit/86b0e8e)).
290 - Refactor synchronization and memory wrappers (mutex, semaphore, condvar, and
291 allocator) to remove trailing name string parameters and clean up debug log
292 statements ([efb8c24](https://github.com/fangfufu/httpdirfs/commit/efb8c24)).
293 - Remove all debug log statements (`log_printf` and `lprintf` calls under the
294 `debug` log type) across FUSE, cache, and link modules to eliminate tracing
295 overhead ([efb8c24](https://github.com/fangfufu/httpdirfs/commit/efb8c24)).
296 - Eliminate unused helper variables (such as the static loop counter inside
297 `LinkTable_new`) that were only required by the removed debug prints,
298 preventing compiler warnings
299 ([efb8c24](https://github.com/fangfufu/httpdirfs/commit/efb8c24)).
300 - Optimize memory tracking in debug allocator wrappers by replacing the $O(N)$
301 linear linked list with a statically sized 8192-slot hash table with chaining
302 ([9b38614](https://github.com/fangfufu/httpdirfs/commit/9b38614)).
303 - Optimize string sanitization loop in `sanitise_LinkTable` by replacing
304 `strlen()` with a null-terminator check, eliminating $O(N^2)$ overhead
305 ([c8fbf51](https://github.com/fangfufu/httpdirfs/commit/c8fbf51)).
306 - Refactor test suites into granular profiles (`unit_test` for C unit tests,
307 `integration_short` for fast integration tests, and `integration_long` for
308 intensive tests) and align documentation in `src/README.md`
309 ([39963f7](https://github.com/fangfufu/httpdirfs/commit/39963f7)).
310 - Revise pre-commit hook configurations to isolate builds, add debug-based
311 verification (`meson-test-debug`), restrict the automatic hook to fast unit
312 tests, and provide manual pre-push hooks (`all-tests` and `all-tests-clang`)
313 ([39963f7](https://github.com/fangfufu/httpdirfs/commit/39963f7),
314 [76fa30b](https://github.com/fangfufu/httpdirfs/commit/76fa30b),
315 [9ad044e](https://github.com/fangfufu/httpdirfs/commit/9ad044e),
316 [89ac572](https://github.com/fangfufu/httpdirfs/commit/89ac572),
317 [af4ee30](https://github.com/fangfufu/httpdirfs/commit/af4ee30)).
318 - Expand the GitHub Actions build matrix on Ubuntu and macOS to execute the test
319 suite under both debug and release configurations in parallel
320 ([1554ed3](https://github.com/fangfufu/httpdirfs/commit/1554ed3)).
321 - Upgrade GitHub Actions workflows to use the latest major runner and dependency
322 actions version
323 ([68dd7bb](https://github.com/fangfufu/httpdirfs/commit/68dd7bb),
324 [f819603](https://github.com/fangfufu/httpdirfs/commit/f819603)).
325 - Add `--short` and `--long` flags to `generate_test_files.py` and isolate short
326 and long integration test suites so that long cache tests no longer generate
327 short fixture files redundantly; dynamically select the range-check probe file
328 to match the active test mode
329 ([2225d0d](https://github.com/fangfufu/httpdirfs/commit/2225d0d)).
330 - Default `generate_test_files.py` to a no-op when no flag is given, removing
331 the implicit `--large` alias; `--all` remains the canonical way to generate
332 both the short fixture set and the 1 GB large file
333 ([3bb8737](https://github.com/fangfufu/httpdirfs/commit/3bb8737)).
334 - Refactor `struct Cache` to remove redundant `time`, `content_length`, and
335 `fs_path` fields; update `Meta_read`/`Meta_write` to preserve the on-disk
336 binary format using local variables, keeping `struct Link` as the single
337 source of truth for core link attributes
338 ([63860bc](https://github.com/fangfufu/httpdirfs/commit/63860bc)).
339 - Statically initialize `link_lock` using `PTHREAD_MUTEX_INITIALIZER`, removing
340 redundant runtime initialization and resolving `EINVAL` crashes in unit tests
341 where `LinkSystem_init` is bypassed
342 ([af24b36](https://github.com/fangfufu/httpdirfs/commit/af24b36)).
343 - Extract repeated transfer-cleanup logic from `Link_download` into a single
344 static `Link_download_finish_transfer` helper, replacing three identical
345 lock/clear/broadcast/reset blocks
346 ([12c6888](https://github.com/fangfufu/httpdirfs/commit/12c6888)).
347 - Update `README.md` to describe high-performance concurrent and asynchronous
348 cache downloads, and add a developer section on memory management and
349 synchronization wrappers
350 ([3c0d145](https://github.com/fangfufu/httpdirfs/commit/3c0d145),
351 [439264f](https://github.com/fangfufu/httpdirfs/commit/439264f)).
352 - Update `src/README.md` to reflect the split integration test stages present in
353 the GitHub Actions `build.yml` configuration
354 ([439264f](https://github.com/fangfufu/httpdirfs/commit/439264f)).
355
356 ### Fixed
357
358 - Resolve a critical Use-After-Free (UAF) deadlock vulnerability in the
359 `Cache_free` teardown path by safely coordinating waiter exits via the new
360 shutdown handshake and reference-counting mechanisms
361 ([a01c9b1](https://github.com/fangfufu/httpdirfs/commit/a01c9b1)).
362 - Intercept size-zero allocations early in `REALLOC_wrapper` by freeing the
363 pointer and returning `NULL` to resolve a double-free on glibc and standardize
364 behavior on BSD/macOS where `realloc(ptr, 0)` returns a non-NULL sentinel
365 pointer ([1e1b11d](https://github.com/fangfufu/httpdirfs/commit/1e1b11d),
366 [d6e3040](https://github.com/fangfufu/httpdirfs/commit/d6e3040)).
367 - Fix potential crashes by adding defensive `NULL` checks on `this_link` in
368 `Cache_create`
369 ([796fbb9](https://github.com/fangfufu/httpdirfs/commit/796fbb9)).
370 - Fix potential crashes by zero-initializing stack-allocated `TransferStruct`
371 variables (`ts` and `header`) in `Link_download` and `Link_download_full`
372 ([1943f8e](https://github.com/fangfufu/httpdirfs/commit/1943f8e)).
373 - Fix directory eviction concurrency issues by holding `link_lock` when freeing
374 duplicate local `LinkTable` directories
375 ([29f51ff](https://github.com/fangfufu/httpdirfs/commit/29f51ff)).
376 - Resolve memory leak in `generate_md5sum` by properly freeing the
377 OpenSSL-allocated `md5_digest` via `OPENSSL_free`
378 ([0d7a07e](https://github.com/fangfufu/httpdirfs/commit/0d7a07e)).
379 - Resolve compiler warning and build issue on macOS CI by replacing
380 GCC/Clang-specific `__attribute__((noreturn))` with the C11 standard
381 `_Noreturn` keyword in `log.h` and `util.h`
382 ([5ed8167](https://github.com/fangfufu/httpdirfs/commit/5ed8167)).
383 - Prevent duplicate background downloads by re-verifying segment existence under
384 `w_lock` after `sem_trywait()` succeeds, closing the TOCTOU race where another
385 thread could complete the download between the initial `Seg_exist` check and
386 the `dl_lock` acquisition
387 ([c11aad6](https://github.com/fangfufu/httpdirfs/commit/c11aad6)).
388 - Prevent null pointer dereference in `Cache_read_segment` by verifying that
389 `ad->ts->data` is not `NULL` before performing the early-return `memcpy`
390 ([935b1e6](https://github.com/fangfufu/httpdirfs/commit/935b1e6)).
391 - Add strict defensive bounds checks in `Seg_exist` and `Seg_set` to reject
392 negative or out-of-bounds offsets before dividing by block size; clamp
393 requested read length in `Cache_read` to remaining file size to prevent
394 false-positive `-EIO` errors near EOF; add `NULL` checks for `cf->link` and
395 offset bounds checks in `Cache_read_segment`
396 ([a527469](https://github.com/fangfufu/httpdirfs/commit/a527469)).
397 - Eliminate TOCTOU race conditions in `Cache_exist` and `Cache_delete` by
398 calling `unlink` directly and checking for `ENOENT`, removing the redundant
399 `access` calls; replace `stat` with `fstat` in tests to prevent CodeQL TOCTOU
400 warnings ([f911f7c](https://github.com/fangfufu/httpdirfs/commit/f911f7c)).
401 - Change `expected_segbc` in `Meta_write` from `long` to `off_t` to prevent
402 silent truncation on 32-bit platforms before the `INT_MAX` cap; use a `size_t`
403 intermediate in `Cache_create` to avoid 32-bit overflow when computing
404 `content_length / blksz`; add a `len < 0` guard in `Cache_read` to prevent
405 negative values wrapping to a large `size_t`
406 ([96baffe](https://github.com/fangfufu/httpdirfs/commit/96baffe)).
407 - Add a memory-only `Cache` bypass shortcut in `Cache_open` for empty files and
408 skip cache operations early in `fs_open` for zero-length files; treat stale or
409 corrupt zero-byte cache metadata and data files as invalid in `Cache_exist`
410 and trigger automatic cleanup; skip network activity early in `Link_download`
411 for zero-byte downloads to avoid invalid HTTP range headers
412 ([6c92d03](https://github.com/fangfufu/httpdirfs/commit/6c92d03)).
413 - Restructure `fs_read` so that cache-enabled zero-length files (where
414 `fi->fh == 0`) return `0` immediately without falling through to
415 `path_download`, avoiding a redundant path lookup and directory traversal
416 ([a491ade](https://github.com/fangfufu/httpdirfs/commit/a491ade)).
417 - Cap `req_size` in `Link_download` using a subtraction-based bounds check to
418 prevent potential integer overflow when the requested range extends beyond the
419 remaining file content
420 ([a527469](https://github.com/fangfufu/httpdirfs/commit/a527469)).
421
422 ## [1.2.11] - 2026-05-23
423
424 ### Added
425
426 - Add support for `--capath` and `--proxy-capath` configuration options
427 ([da9b0e9](https://github.com/fangfufu/httpdirfs/commit/da9b0e9)).
428 - Support `--config=path` to specify a configuration file
429 ([db65bb5](https://github.com/fangfufu/httpdirfs/commit/db65bb5)).
430 - Add core unit testing suite using the Unity framework
431 ([e50d690](https://github.com/fangfufu/httpdirfs/commit/e50d690)).
432 - Add system integration test suite
433 ([89e5027](https://github.com/fangfufu/httpdirfs/commit/89e5027)).
434 - Add a debug memory allocation tracker and hardened memory allocations
435 ([e86afe8](https://github.com/fangfufu/httpdirfs/commit/e86afe8)).
436
437 ### Changed
438
439 - Optimize `Cache_open` by caching file size locally and avoiding redundant
440 system calls to `Data_size`
441 ([10e5208](https://github.com/fangfufu/httpdirfs/commit/10e5208)).
442 - Exclude integration tests from default Meson test runs, executing them only in
443 CI or when explicitly requested
444 ([f13559b](https://github.com/fangfufu/httpdirfs/commit/f13559b),
445 [91a8295](https://github.com/fangfufu/httpdirfs/commit/91a8295)).
446 - Refactor fatal logging infrastructure
447 ([0753fc4](https://github.com/fangfufu/httpdirfs/commit/0753fc4)).
448 - Refactor and enhance the `FREE` macro and fix format specifiers
449 ([ef80e80](https://github.com/fangfufu/httpdirfs/commit/ef80e80)).
450 - Replace custom limit macros with standard `limits.h` constants
451 ([f9d4542](https://github.com/fangfufu/httpdirfs/commit/f9d4542)).
452 - Run cache tests with multiple block sizes and recreate cache directory between
453 iterations ([6f889ac](https://github.com/fangfufu/httpdirfs/commit/6f889ac),
454 [9fe774a](https://github.com/fangfufu/httpdirfs/commit/9fe774a)).
455 - Install clang in build and pre-commit workflow environments, and upload Meson
456 test logs as build artifacts
457 ([d6dd5d8](https://github.com/fangfufu/httpdirfs/commit/d6dd5d8),
458 [4edc45b](https://github.com/fangfufu/httpdirfs/commit/4edc45b)).
459 - Update documentation in `src/README.md` (unit/integration test guides) and
460 `USAGE.md` ([4d67613](https://github.com/fangfufu/httpdirfs/commit/4d67613),
461 [bde2dfa](https://github.com/fangfufu/httpdirfs/commit/bde2dfa)).
462
463 ### Fixed
464
465 - Resolve concurrent cache initialization race in `fs_open`
466 ([64e8ea3](https://github.com/fangfufu/httpdirfs/commit/64e8ea3)).
467 - Correct off-by-one error in cache segment count calculation
468 ([4cba404](https://github.com/fangfufu/httpdirfs/commit/4cba404)).
469 - Prevent unbound `MOUNT_DIR` error in integration test cleanup
470 ([12b8cdd](https://github.com/fangfufu/httpdirfs/commit/12b8cdd)).
471 - Check for backtrace in libc before searching for `execinfo` in build
472 configuration
473 ([ded25f9](https://github.com/fangfufu/httpdirfs/commit/ded25f9)).
474 - Reset `proxy_cafile` correctly in `Config_init`
475 ([6a88d4d](https://github.com/fangfufu/httpdirfs/commit/6a88d4d)).
476 - Handle `Link_download` errors in cache mode
477 ([23ec785](https://github.com/fangfufu/httpdirfs/commit/23ec785)).
478
479 ## [1.2.10] - 2026-05-16
480
481 ### Fixed
482
483 - Reuse populated LinkTable to prevent memory leaks and redundant I/O
484 ([0fd47e4](https://github.com/fangfufu/httpdirfs/commit/0fd47e4)).
485 - Fix Sonic ID3 recursive root listing with artists by improving parser
486 robustness ([ffc3db6](https://github.com/fangfufu/httpdirfs/commit/ffc3db6))
487 (https://github.com/fangfufu/httpdirfs/pull/213).
488
489 ## [1.2.9] - 2026-05-13
490
491 ### Added
492
493 - Fail early if mountpoint or FUSE module is missing
494 ([5c53ad3](https://github.com/fangfufu/httpdirfs/commit/5c53ad3)).
495
496 ### Fixed
497
498 - Improve link initialization error reporting
499 ([8911119](https://github.com/fangfufu/httpdirfs/commit/8911119))
500 (https://github.com/fangfufu/httpdirfs/issues/207).
501 - Return the correct failure exit code
502 ([5dd032a](https://github.com/fangfufu/httpdirfs/commit/5dd032a))
503 (https://github.com/fangfufu/httpdirfs/issues/208).
504 - Resolve mountpoint to absolute path to prevent unmount failure on termination
505 for relative mountpoints
506 ([3a53c40](https://github.com/fangfufu/httpdirfs/commit/3a53c40))
507 (https://github.com/fangfufu/httpdirfs/issues/177).
508 - Removed useless `NOLINT` tags
509 ([c8abdec](https://github.com/fangfufu/httpdirfs/commit/c8abdec)).
510
511 ### Changed
512
513 - Update help's default value based on `config.h`
514 ([adf3bb9](https://github.com/fangfufu/httpdirfs/commit/adf3bb9))
515 (https://github.com/fangfufu/httpdirfs/issues/150).
516 - Update documentation in `src/README.md` and `USAGE.md`
517 ([1d7e8e5](https://github.com/fangfufu/httpdirfs/commit/1d7e8e5),
518 [1b16c9d](https://github.com/fangfufu/httpdirfs/commit/1b16c9d)).
519
520 ## [1.2.8] - 2026-05-10
521
522 ### Added
523
524 - Added macOS build support and automated CI pipeline
525 ([200f70e](https://github.com/fangfufu/httpdirfs/commit/200f70e)).
526 - Added `--invalid-refresh` flag to refresh invalid links during directory reads
527 ([68c305c](https://github.com/fangfufu/httpdirfs/commit/68c305c))
528 (https://github.com/fangfufu/httpdirfs/issues/175).
529 - Added `--zero-len-is-dir` flag to treat zero-length files as directories
530 ([9e750b9](https://github.com/fangfufu/httpdirfs/commit/9e750b9)).
531 - Added support for directory modified times and zero-length files
532 ([2fde399](https://github.com/fangfufu/httpdirfs/commit/2fde399),
533 [00a6b35](https://github.com/fangfufu/httpdirfs/commit/00a6b35)).
534 - Added `pre-commit` framework integration with Prettier and Clang-Tidy for code
535 quality and formatting
536 ([f557a2d](https://github.com/fangfufu/httpdirfs/commit/f557a2d)).
537 - Added `USAGE.md` for detailed command-line flag documentation
538 ([c85c065](https://github.com/fangfufu/httpdirfs/commit/c85c065)).
539 - Added help text for `-f`, `-s`, and `--debug` flags
540 ([553745b](https://github.com/fangfufu/httpdirfs/commit/553745b)).
541 - Added `codespell` to `pre-commit` and fixed spelling errors
542 ([a898adf](https://github.com/fangfufu/httpdirfs/commit/a898adf)).
543 - Added Repology badge to documentation
544 ([996b925](https://github.com/fangfufu/httpdirfs/commit/996b925)).
545 - Added a `pre-commit` GitHub workflow for automated checks
546 ([c5fc5d0](https://github.com/fangfufu/httpdirfs/commit/c5fc5d0)).
547
548 ### Changed
549
550 - Transitioned background thread synchronization from mutexes to semaphores for
551 better reliability
552 ([4ee7476](https://github.com/fangfufu/httpdirfs/commit/4ee7476))
553 (https://github.com/fangfufu/httpdirfs/issues/91).
554 - Improved error messages and debug output throughout the application
555 ([405d097](https://github.com/fangfufu/httpdirfs/commit/405d097)).
556 - Enhanced static analysis enforcement with comprehensive Clang-Tidy checks
557 ([9ae4f89](https://github.com/fangfufu/httpdirfs/commit/9ae4f89)).
558 - Updated documentation and build requirements for Debian 13 "Trixie"
559 ([f44d040](https://github.com/fangfufu/httpdirfs/commit/f44d040)).
560 - Refined filename character restrictions for improved compatibility
561 ([6476571](https://github.com/fangfufu/httpdirfs/commit/6476571))
562 (https://github.com/fangfufu/httpdirfs/issues/178).
563 - Updated `help2man` options to exclude info pages
564 ([2ebd190](https://github.com/fangfufu/httpdirfs/commit/2ebd190)).
565 - Refactored nested `if` statements for improved code conciseness
566 ([43906c9](https://github.com/fangfufu/httpdirfs/commit/43906c9)).
567 - Simplified safety checks in `LinkTable_uninitialised_fill`
568 ([f593bba](https://github.com/fangfufu/httpdirfs/commit/f593bba)).
569 - Allowed `FREE(NULL)` to match standard C `free()` behavior
570 ([5dc541e](https://github.com/fangfufu/httpdirfs/commit/5dc541e)).
571 - Replaced `astyle` with `clang-format` for consistent code styling
572 ([a134774](https://github.com/fangfufu/httpdirfs/commit/a134774)).
573 - Updated documentation with comprehensive `src/README.md` and pre-commit
574 instructions
575 ([04a8558](https://github.com/fangfufu/httpdirfs/commit/04a8558)).
576 - Configured Prettier to prevent merging GitHub alert tags in documentation
577 ([cea9e65](https://github.com/fangfufu/httpdirfs/commit/cea9e65)).
578 - Integrated Prettier hook for Markdown formatting
579 ([ee1c1fe](https://github.com/fangfufu/httpdirfs/commit/ee1c1fe)).
580 - Refactored `Cache_read1` to `Cache_read_segment` and made it static
581 ([c3c2912](https://github.com/fangfufu/httpdirfs/commit/c3c2912)).
582 - Optimized network activity by avoiding polling when a response is already
583 available ([a77a2f6](https://github.com/fangfufu/httpdirfs/commit/a77a2f6)).
584
585 ### Fixed
586
587 - Resolved macOS FUSE API compatibility issues and compilation errors
588 ([200f70e](https://github.com/fangfufu/httpdirfs/commit/200f70e)).
589 - Fixed various race conditions and potential deadlocks in thread management
590 ([42dd71e](https://github.com/fangfufu/httpdirfs/commit/42dd71e))
591 (https://github.com/fangfufu/httpdirfs/issues/174).
592 - Fixed issues with duplicated file entries in certain directory listings
593 ([9424389](https://github.com/fangfufu/httpdirfs/commit/9424389))
594 (https://github.com/fangfufu/httpdirfs/issues/176).
595 - Fixed cache corruption occurring on write errors
596 ([fe1cce4](https://github.com/fangfufu/httpdirfs/commit/fe1cce4)).
597 - Fixed Nginx-specific directory listing parsing issues
598 ([3527f52](https://github.com/fangfufu/httpdirfs/commit/3527f52)).
599 - Fixed `const`-correctness for `strchr`/`strrchr` wrappers
600 ([92622fc](https://github.com/fangfufu/httpdirfs/commit/92622fc)).
601 - Fixed link name comparison logic (`linknames_equal`)
602 ([4c1a285](https://github.com/fangfufu/httpdirfs/commit/4c1a285)).
603 - Fixed issue #95: Avoid infinite hang when accessing directories returning 404
604 errors ([ed5e9fa](https://github.com/fangfufu/httpdirfs/commit/ed5e9fa))
605 (https://github.com/fangfufu/httpdirfs/issues/95).
606 - Fixed issue #190: Implemented robust retry logic for network downloads
607 ([08a7987](https://github.com/fangfufu/httpdirfs/commit/08a7987))
608 (https://github.com/fangfufu/httpdirfs/pull/203).
609 - Fixed issue #193: Support parsing links to intermediate subdirectories
610 (https://github.com/fangfufu/httpdirfs/issues/193).
611 - Fixed issues #100 and #102: Fixed argument parsing to support options passed
612 after the mountpoint, enabling compatibility with `fstab` and `mount`.
613 (https://github.com/fangfufu/httpdirfs/issues/100,
614 https://github.com/fangfufu/httpdirfs/issues/102).
615 - Fixed security vulnerability V-001
616 ([4584847](https://github.com/fangfufu/httpdirfs/commit/4584847)).
617
618 ### [1.2.7] - 2024-11-11
619
620 ### Fixed
621
622 - Fixed FreeBSD compilation
623 ([43bdf7e](https://github.com/fangfufu/httpdirfs/commit/43bdf7e))
624 (https://github.com/fangfufu/httpdirfs/issues/165)
625
626 ## [1.2.6] - 2024-10-07
627
628 ### Fixed
629
630 - The refreshed LinkTable is now saved
631 ([9135168](https://github.com/fangfufu/httpdirfs/commit/9135168)).
632 (https://github.com/fangfufu/httpdirfs/issues/141)
633 - Only one LinkTable of the same directory is created when the cache mode is
634 enabled ([e253b4a](https://github.com/fangfufu/httpdirfs/commit/e253b4a)).
635 (https://github.com/fangfufu/httpdirfs/issues/140)
636 - Cache mode now works correctly with escaped URL
637 ([720db5a](https://github.com/fangfufu/httpdirfs/commit/720db5a)).
638 (https://github.com/fangfufu/httpdirfs/issues/138)
639 - Fixed `--user-agent` option
640 ([8f0ef15](https://github.com/fangfufu/httpdirfs/commit/8f0ef15))
641 (https://github.com/fangfufu/httpdirfs/issues/159)
642 - Allow leading `./` segments in links
643 ([bd33966](https://github.com/fangfufu/httpdirfs/commit/bd33966))
644 (https://github.com/fangfufu/httpdirfs/pull/125)
645 - Fix segfault due to missing LinkTable allocation
646 ([1f91111](https://github.com/fangfufu/httpdirfs/commit/1f91111))
647 (https://github.com/fangfufu/httpdirfs/pull/155)
648 - Fix Segmentation fault if HOME not set
649 ([09ebc82](https://github.com/fangfufu/httpdirfs/commit/09ebc82))
650 (https://github.com/fangfufu/httpdirfs/pull/162)
651 - Handle sites that use absolute links and sites that require the final slash
652 ([4d323b8](https://github.com/fangfufu/httpdirfs/commit/4d323b8),
653 [41cb4b8](https://github.com/fangfufu/httpdirfs/commit/41cb4b8))
654 (https://github.com/fangfufu/httpdirfs/pull/121)
655
656 ### Added
657
658 - Add `--http-header` option
659 ([e3b2904](https://github.com/fangfufu/httpdirfs/commit/e3b2904))
660 (https://github.com/fangfufu/httpdirfs/issues/157)
661 - Add `--cache-clear` option
662 ([194a10f](https://github.com/fangfufu/httpdirfs/commit/194a10f))
663 (https://github.com/fangfufu/httpdirfs/issues/111)
664 - Add `--refresh-timeout` to set refresh timeout for directory contents
665 ([a309994](https://github.com/fangfufu/httpdirfs/commit/a309994))
666 (https://github.com/fangfufu/httpdirfs/pull/114)
667
668 ### Changed
669
670 - Improved LinkTable caching. LinkTable invalidation is now purely based on
671 timeout ([0747566](https://github.com/fangfufu/httpdirfs/commit/0747566)).
672 (https://github.com/fangfufu/httpdirfs/issues/147)
673 - Replaced the GNU Autotools based build system with Meson
674 ([63c03a5](https://github.com/fangfufu/httpdirfs/commit/63c03a5)).
675 (https://github.com/fangfufu/httpdirfs/issues/149)
676 - Transitioned from using libfuse 2.x to to 3.x
677 ([ad34ae0](https://github.com/fangfufu/httpdirfs/commit/ad34ae0)).
678 (https://github.com/fangfufu/httpdirfs/issues/116)
679 - Updated OpenSSL MD5 checksum generation API usage
680 ([86c1185](https://github.com/fangfufu/httpdirfs/commit/86c1185)).
681 (https://github.com/fangfufu/httpdirfs/issues/143)
682
683 ## [1.2.5] - 2023-02-24
684
685 ### Fixed
686
687 - No longer compile with UBSAN enabled by default to avoid introducing security
688 vulnerability
689 ([fe45afc](https://github.com/fangfufu/httpdirfs/commit/fe45afc)).
690
691 ## [1.2.4] - 2023-01-11
692
693 ### Added
694
695 - Add `--cacert` and `--proxy-cacert` options
696 ([12abb7d](https://github.com/fangfufu/httpdirfs/commit/12abb7d))
697
698 ### Fixed
699
700 - `Link_download_full`: don't `FREE(NULL)`
701 ([ff5f566](https://github.com/fangfufu/httpdirfs/commit/ff5f566))
702 - Correct error message in `FREE()`
703 ([833cbf9](https://github.com/fangfufu/httpdirfs/commit/833cbf9))
704 - Error handling for `fs_open` and `getopt_long`
705 ([72d15ab](https://github.com/fangfufu/httpdirfs/commit/72d15ab),
706 [ffb2658](https://github.com/fangfufu/httpdirfs/commit/ffb2658))
707 - Fix IO error with funkwhale subsonic API
708 ([abef0c9](https://github.com/fangfufu/httpdirfs/commit/abef0c9))
709 - Fix `--insecure-tls` in help and README
710 ([ebcfb0a](https://github.com/fangfufu/httpdirfs/commit/ebcfb0a))
711
712 ## [1.2.3] - 2021-08-31
713
714 ### Added
715
716 - Single File Mode, which allows the mounting of a single file in a virtual
717 directory ([f42264d](https://github.com/fangfufu/httpdirfs/commit/f42264d))
718 - Manual page generation in Makefile
719 ([ff97740](https://github.com/fangfufu/httpdirfs/commit/ff97740),
720 [07603c3](https://github.com/fangfufu/httpdirfs/commit/07603c3)).
721
722 ### Changed
723
724 - Improve log / debug output
725 ([07603c3](https://github.com/fangfufu/httpdirfs/commit/07603c3),
726 [e02042c](https://github.com/fangfufu/httpdirfs/commit/e02042c),
727 [f791ceb](https://github.com/fangfufu/httpdirfs/commit/f791ceb)).
728 - Removed unnecessary mutex lock/unlocks
729 ([7813487](https://github.com/fangfufu/httpdirfs/commit/7813487)).
730
731 ### Fixed
732
733 - Handling empty files from HTTP server
734 ([3c7e790](https://github.com/fangfufu/httpdirfs/commit/3c7e790))
735
736 ## [1.2.2] - 2021-08-08
737
738 ### Fixed
739
740 - macOS uninstallation in Makefile
741 ([92a7330](https://github.com/fangfufu/httpdirfs/commit/92a7330)).
742 - Filenames start with percentage encoding are now parsed properly
743 ([861481e](https://github.com/fangfufu/httpdirfs/commit/861481e))
744 - For Apache server configured with IconsAreLinks, the duplicated link no longer
745 shows up ([e76b079](https://github.com/fangfufu/httpdirfs/commit/e76b079)).
746
747 ## [1.2.1] - 2021-05-27
748
749 ### Added
750
751 - macOS compilation support
752 ([e553463](https://github.com/fangfufu/httpdirfs/commit/e553463),
753 [1df02b0](https://github.com/fangfufu/httpdirfs/commit/1df02b0)).
754
755 ## [1.2.0] - 2019-11-01
756
757 ### Added
758
759 - Subsonic server support - this is dedicated to my Debian package maintainer
760 Jerome Charaoui
761 ([8206b4f](https://github.com/fangfufu/httpdirfs/commit/8206b4f),
762 [5062f51](https://github.com/fangfufu/httpdirfs/commit/5062f51))
763 - You can now specify which configuration file to use by using the `--config`
764 flag ([4b02980](https://github.com/fangfufu/httpdirfs/commit/4b02980)).
765 - Added support for turning off TLS certificate check (`--insecure_tls` flag)
766 ([e9c8689](https://github.com/fangfufu/httpdirfs/commit/e9c8689)).
767 - Now check for server's support for HTTP range request, which can be turned off
768 using the `--no-range-check` flag
769 ([a8ef8c8](https://github.com/fangfufu/httpdirfs/commit/a8ef8c8),
770 [c2be88c](https://github.com/fangfufu/httpdirfs/commit/c2be88c)).
771
772 ### Changed
773
774 - Wrapped all calloc() calls with error handling functions
775 ([b7c63f4](https://github.com/fangfufu/httpdirfs/commit/b7c63f4)).
776 - Various code refactoring.
777
778 ### Fixed
779
780 - Remove the erroneous error messages when the user supplies wrong command line
781 options ([dec32b0](https://github.com/fangfufu/httpdirfs/commit/dec32b0)).
782 - The same cache folder is used, irrespective whether the server root URL ends
783 with '/' ([6d14497](https://github.com/fangfufu/httpdirfs/commit/6d14497)).
784 - FreeBSD support
785 ([80c0b69](https://github.com/fangfufu/httpdirfs/commit/80c0b69),
786 [b177039](https://github.com/fangfufu/httpdirfs/commit/b177039)).
787
788 ## [1.1.10] - 2019-09-10
789
790 ### Added
791
792 - Added a progress indicator for LinkTable_fill()
793 ([9ff099c](https://github.com/fangfufu/httpdirfs/commit/9ff099c)).
794 - Backtrace will now be printed when the program crashes
795 ([c7dfa24](https://github.com/fangfufu/httpdirfs/commit/c7dfa24))
796 - Note that static functions are not included in the printed backtrace!
797
798 ### Changed
799
800 - Updated Makefile, fixed issue #44
801 ([765f4e0](https://github.com/fangfufu/httpdirfs/commit/765f4e0))
802 - When header files get changed, the relevant object will get recompiled.
803 - Improved HTTP temporary failure error handling
804 ([1493190](https://github.com/fangfufu/httpdirfs/commit/1493190),
805 [ff67794](https://github.com/fangfufu/httpdirfs/commit/ff67794))
806 - Now retry on the following HTTP error codes:
807 - 429 - Too Many Requests
808 - 520 - Cloudflare Unknown Error
809 - 524 - Cloudflare Timeout
810
811 ### Fixed
812
813 - No longer deadlock after encountering HTTP 429 while filling up a Linktable
814 ([b6777c0](https://github.com/fangfufu/httpdirfs/commit/b6777c0)).
815 - LinkTable caching now works again
816 ([bc23ee0](https://github.com/fangfufu/httpdirfs/commit/bc23ee0)).
817
818 ## [1.1.9] - 2019-09-02
819
820 ### Changed
821
822 - Improved the performance of directory listing generation while there are
823 on-going file transfers
824 ([afb2a8f](https://github.com/fangfufu/httpdirfs/commit/afb2a8f))
825 - Wrapped mutex locking and unlocking functions in error checking functions
826 ([1a44a4d](https://github.com/fangfufu/httpdirfs/commit/1a44a4d),
827 [e06ea6d](https://github.com/fangfufu/httpdirfs/commit/e06ea6d)).
828
829 ### Fixed
830
831 - Fixed issue #40 - Crashes with "API function called from within callback"
832 ([d6fbcb4](https://github.com/fangfufu/httpdirfs/commit/d6fbcb4)).
833 - Cache system: now keep track of the number of times a cache file has been
834 opened ([9229658](https://github.com/fangfufu/httpdirfs/commit/9229658),
835 [ed5457c](https://github.com/fangfufu/httpdirfs/commit/ed5457c)). - The
836 on-disk cache file no longer gets opened multiple times, if a file is opened
837 multiple times. This used to cause inconsistencies between two opened cache
838 files.
839 - Cache system: Fixed buffer over-read at the boundary
840 ([6c8a15d](https://github.com/fangfufu/httpdirfs/commit/6c8a15d)).
841 - Say we are using a lock size of 1024k, we send a request for 128k at 1008k.
842 It won't trigger the download, because we have already downloaded the first
843 1024k at byte 0. So it would read off from the empty disk space!
844 - This problem only occurred during the first time you download a file. During
845 subsequent accesses, when you are only reading from the cache, this problem
846 did not occur.
847 - Cache system: Previously it was possible for Cache_bgdl()'s download offset to
848 be modified by the parent thread after the child thread had been launched
849 ([9e3e474](https://github.com/fangfufu/httpdirfs/commit/9e3e474)). This used
850 to cause permanent cache file corruption.
851 - Cache system: Cache_bgdl() no longer prefetches beyond EOF
852 ([4c0b7da](https://github.com/fangfufu/httpdirfs/commit/4c0b7da)).
853 - Cache system: Data_read() no longer gives warning messages when reaching the
854 end of the cache file
855 ([ee397d1](https://github.com/fangfufu/httpdirfs/commit/ee397d1)).
856
857 ## [1.1.8] - 2019-08-30
858
859 ### Changed
860
861 - Suppressed "-Wunused-function" in `network.c` for network related functions
862 ([20577e5](https://github.com/fangfufu/httpdirfs/commit/20577e5)).
863
864 ### Fixed
865
866 - Addressed the link ordering problem raised in issue #28
867 ([97ecbff](https://github.com/fangfufu/httpdirfs/commit/97ecbff))
868
869 ## [1.1.7] - 2019-08-23
870
871 ### Added
872
873 - Debugging output associated with the mutexes
874 ([c660159](https://github.com/fangfufu/httpdirfs/commit/c660159))
875
876 ### Fixed
877
878 - Fixed issue #34 - file / directory detection problem
879 ([78d8167](https://github.com/fangfufu/httpdirfs/commit/78d8167))
880 - Fixed issue #36 - hanging when HTTP/2 is used
881 ([ed37aa5](https://github.com/fangfufu/httpdirfs/commit/ed37aa5))
882 - Added pthread_detach() for thread cleanup
883 ([c72b0d4](https://github.com/fangfufu/httpdirfs/commit/c72b0d4))
884
885 ## [1.1.6] - 2019-05-07
886
887 ### Changed
888
889 - Now set a default cache directory
890 ([2835201](https://github.com/fangfufu/httpdirfs/commit/2835201))
891 - path_append() now check for both the existing path and appended path for '/'
892 ([88efbdf](https://github.com/fangfufu/httpdirfs/commit/88efbdf)).
893 - Now additionally set CURLMOPT_MAX_HOST_CONNECTIONS to limit the amount of
894 connection HTTPDirFS makes
895 ([f1c7e6e](https://github.com/fangfufu/httpdirfs/commit/f1c7e6e)).
896
897 ## [1.1.5] - 2019-04-27
898
899 ### Added
900
901 - Added `--dl-seg-size` command line option
902 ([ba8c723](https://github.com/fangfufu/httpdirfs/commit/ba8c723)).
903 - Added `--max-seg-count` command line option
904 ([4acf91a](https://github.com/fangfufu/httpdirfs/commit/4acf91a)).
905 - Added `--max-conns` command line option
906 ([85d66ad](https://github.com/fangfufu/httpdirfs/commit/85d66ad)).
907 - Added `--user-agent` command line option
908 ([85d66ad](https://github.com/fangfufu/httpdirfs/commit/85d66ad)).
909 - Added `--retry-wait` command line option
910 ([7c1c1d2](https://github.com/fangfufu/httpdirfs/commit/7c1c1d2)).
911
912 ### Changed
913
914 - Refactored `curl_multi_perform_once()` for lower CPU usage
915 ([2a2ac2d](https://github.com/fangfufu/httpdirfs/commit/2a2ac2d)).
916
917 ## [1.1.4] - 2019-04-26
918
919 ### Fixed
920
921 - Invalid link rechecking after loading a LinkTable from the disk
922 ([1dc54af](https://github.com/fangfufu/httpdirfs/commit/1dc54af)).
923
924 ## [1.1.3] - 2019-04-26
925
926 ### Added
927
928 - Now handles HTTP 429 Too Many Requests correctly
929 ([39820e3](https://github.com/fangfufu/httpdirfs/commit/39820e3),
930 [774f14c](https://github.com/fangfufu/httpdirfs/commit/774f14c)).
931 - When loading a LinkTable from the hard disk, if there are invalid links in the
932 LinkTable, their headers are redownloaded for rechecking
933 ([9717d01](https://github.com/fangfufu/httpdirfs/commit/9717d01)).
934
935 ## [1.1.2] - 2019-04-26
936
937 ### Added
938
939 - Now caches directory structure on the hard disk
940 ([5f6fc3f](https://github.com/fangfufu/httpdirfs/commit/5f6fc3f),
941 [9a5f37d](https://github.com/fangfufu/httpdirfs/commit/9a5f37d)). Httpdirfs no
942 longer stutters when visiting the directories that had been visited before,
943 after restart. If there is inconsistency between the number of files on the
944 server and in the cache, the local directory structure will be recreated,
945 hence the cache will be refreshed. Creating local directory structure involves
946 downloading the header for each file, this is what causes stuttering when
947 visiting a new directory.
948
949 ## [1.1.1] - 2019-04-25
950
951 ### Added
952
953 - `Cache_bgdl()` to download the next segment in background, after blocks from
954 the second half of the current segment has been requested
955 ([e442871](https://github.com/fangfufu/httpdirfs/commit/e442871),
956 [df025b1](https://github.com/fangfufu/httpdirfs/commit/df025b1)).
957
958 ### Changed
959
960 - Changed the `DATA_BLK_SZ` to 8MB
961 ([6d02b05](https://github.com/fangfufu/httpdirfs/commit/6d02b05))
962
963 ## [1.1.0] - 2019-04-24
964
965 ### Added
966
967 - Permanent cache feature
968 ([e2d2b0d](https://github.com/fangfufu/httpdirfs/commit/e2d2b0d)).
969
970 ### Fixed
971
972 - Fixed memory leak during LinkTable creation
973 ([77bb715](https://github.com/fangfufu/httpdirfs/commit/77bb715)).
974
975 ## [1.0.4] - 2019-04-12
976
977 ### Changed
978
979 - Enabled HTTP pipelining for performance improved
980 ([3f15be0](https://github.com/fangfufu/httpdirfs/commit/3f15be0))
981 - Decreased maximum connection number to 10, to reduce the stress to remove
982 server ([3f15be0](https://github.com/fangfufu/httpdirfs/commit/3f15be0)).
983
984 ## [1.0.3] - 2019-04-08
985
986 ### Fixed
987
988 - Fixed issue #24 - httpdirfs now opens directories with long listings properly
989 ([329abda](https://github.com/fangfufu/httpdirfs/commit/329abda)).
990
991 ## [1.0.2] - 2019-03-02
992
993 ### Changed
994
995 - Closed issue #23 - Dotfile madness, httpdirfs now reads configuration file
996 from ${XDG_CONFIG_HOME}/httpdirfs, rather than ${HOME}/.httpdirfs
997 ([b862c4b](https://github.com/fangfufu/httpdirfs/commit/b862c4b))
998
999 ## [1.0.1] - 2019-01-25
1000
1001 - Initial Debian package release
1002
1003 ### Added
1004
1005 - Add a manpage
1006 ([740acee](https://github.com/fangfufu/httpdirfs/commit/740acee))
1007
1008 ### Changed
1009
1010 - Fix output of `--version`/`-V`
1011 ([3e1675d](https://github.com/fangfufu/httpdirfs/commit/3e1675d))
1012 - Improved Makefile
1013 ([92d4b0a](https://github.com/fangfufu/httpdirfs/commit/92d4b0a),
1014 [d73b16d](https://github.com/fangfufu/httpdirfs/commit/d73b16d))
1015 - Various other minor improvements
1016 ([77f4989](https://github.com/fangfufu/httpdirfs/commit/77f4989),
1017 [3b5252f](https://github.com/fangfufu/httpdirfs/commit/3b5252f))
1018
1019 ## [1.0] - 2018-08-22
1020
1021 - Initial release, everything works correctly, as far as I know.
1022
1023 [1.0]: https://github.com/fangfufu/httpdirfs/releases/tag/1.0
1024 [1.0.1]: https://github.com/fangfufu/httpdirfs/compare/1.0...v1.0.1
1025 [1.0.2]: https://github.com/fangfufu/httpdirfs/compare/v1.0.1...1.0.2
1026 [1.0.3]: https://github.com/fangfufu/httpdirfs/compare/1.0.2...1.0.3
1027 [1.0.4]: https://github.com/fangfufu/httpdirfs/compare/1.0.3...1.0.4
1028 [1.1.0]: https://github.com/fangfufu/httpdirfs/compare/1.0.4...1.1.0
1029 [1.1.1]: https://github.com/fangfufu/httpdirfs/compare/1.1.0...1.1.1
1030 [1.1.10]: https://github.com/fangfufu/httpdirfs/compare/1.1.9...1.1.10
1031 [1.1.2]: https://github.com/fangfufu/httpdirfs/compare/1.1.1...1.1.2
1032 [1.1.3]: https://github.com/fangfufu/httpdirfs/compare/1.1.2...1.1.3
1033 [1.1.4]: https://github.com/fangfufu/httpdirfs/compare/1.1.3...1.1.4
1034 [1.1.5]: https://github.com/fangfufu/httpdirfs/compare/1.1.4...1.1.5
1035 [1.1.6]: https://github.com/fangfufu/httpdirfs/compare/1.1.5...1.1.6
1036 [1.1.7]: https://github.com/fangfufu/httpdirfs/compare/1.1.6...1.1.7
1037 [1.1.8]: https://github.com/fangfufu/httpdirfs/compare/1.1.7...1.1.8
1038 [1.1.9]: https://github.com/fangfufu/httpdirfs/compare/1.1.8...1.1.9
1039 [1.2.0]: https://github.com/fangfufu/httpdirfs/compare/1.1.10...1.2.0
1040 [1.2.1]: https://github.com/fangfufu/httpdirfs/compare/1.2.0...1.2.1
1041 [1.2.10]: https://github.com/fangfufu/httpdirfs/compare/1.2.9...1.2.10
1042 [1.2.11]: https://github.com/fangfufu/httpdirfs/compare/1.2.10...1.2.11
1043 [1.2.2]: https://github.com/fangfufu/httpdirfs/compare/1.2.1...1.2.2
1044 [1.2.3]: https://github.com/fangfufu/httpdirfs/compare/1.2.2...1.2.3
1045 [1.2.4]: https://github.com/fangfufu/httpdirfs/compare/1.2.3...1.2.4
1046 [1.2.5]: https://github.com/fangfufu/httpdirfs/compare/1.2.4...1.2.5
1047 [1.2.6]: https://github.com/fangfufu/httpdirfs/compare/1.2.5...1.2.6
1048 [1.2.7]: https://github.com/fangfufu/httpdirfs/compare/1.2.6...1.2.7
1049 [1.2.8]: https://github.com/fangfufu/httpdirfs/compare/1.2.7...1.2.8
1050 [1.2.9]: https://github.com/fangfufu/httpdirfs/compare/1.2.8...1.2.9
1051 [1.3.0]: https://github.com/fangfufu/httpdirfs/compare/1.2.11...1.3.0
1052 [1.3.1]: https://github.com/fangfufu/httpdirfs/compare/1.3.0...1.3.1
1053 [1.3.2]: https://github.com/fangfufu/httpdirfs/compare/1.3.1...1.3.2
1054 [1.3.3]: https://github.com/fangfufu/httpdirfs/compare/1.3.2...1.3.3
1055 [unreleased]: https://github.com/fangfufu/httpdirfs/compare/1.3.3...master