Great insights on composition. They mostly mirror my own. IMO, composition is the key activity of most industrial programming, and our existing tools are awful at it.
In response to the post, folks have linked some related papers that you might also find interesting:
Architectural Mismatch: Why Reuse is Still So Hard
Composition is the root of all evil
I see you are using Pelican:
have you run into this issue:
No because I don’t use --listen, I just run another webserver, for no specific reason.
Your fix looks good though.
Good idea, I wrote my own server in the meantime: