4 ms·
I hacked on httpdito some more, and it has been improved in several ways: - it now forks so that it can handle multiple concurrent connections (up to a limit o
by kragen 13y ago
I hacked on httpdito some more, and it has been improved in several ways:
- it now forks so that it can handle multiple concurrent connections (up to a limit of 2048);
- it no longer uses libc at all, so it's down to 2088 bytes (I had it lower, but then I added forking);
- it's less complex now that it only has one way of invoking system calls instead of two;
- there are some performance results in the comments.
- it has a name, "httpdito";
- strlen works correctly.
Probably nobody will read this comment here, but I thought it was worth mentioning.
- kragen 13y agoDown to 1928 bytes now, and has timeouts for robustness. You can still DoS it but it takes more work.