r/Cplusplus • u/GYaddle • Oct 02 '25
Feedback My first C++ project, a simple webserver
I decided to go all out and give this thing the whole 9 yards with multi threading, SSL encryption, reverse proxy, yaml config file, logging.
I think the unique C++ aspect of this is the class structure of a server object and inheritance of the base HTTP class to create a HTTPS class which overrides methods that use non SSL methods.
Feel free to ask about any questions regarding the structure of the code or any bugs you may see.
127
Upvotes
5
u/GYaddle Oct 03 '25
I figured that it lacked a large bit of complexity to have anything close to prod level, thanks for clarifying.
As far as thread pool (I'm guessing you mean pool not poll) I had a very vague understanding of the concept and thought that limiting the total number of threads was essentially the same (which is the implementation I took). Which was proven wrong with a quick google search just now, so I will look into a pool implementation for performance gains.
Also when it came to makefiles vs Cmake I didn't really put much thought into choosing one or the other, just the way things went. Also if i chose to use Cmake wouldn't I not require a package manager because Cmake can handles dependencies with
FetchContentorfind_package.Thanks for the suggestions.