Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket. Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.
Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
21–30 of 54 posts
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#22Earlier quoted context omitted.
I don't understand this, could you explain?
around line 663. there's a call to strrchr, checking for a period in the filename. then immediately after that, there's a strlen that uses the results. Which is fine, unless the first call returns NULL, because there was no period in the name, and then the program will crash.
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#23Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#24Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket. Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.
Harsh? Maybe, but you're posting this to a site with some of the most jaded developers on the planet. Not sorry.
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#25Are you near Sydney? I noted a possible link to the Central Coast. I will contribute a smaller device if you're game to host it. PS. You may be unaware that your shortened domain name 'benren' from your whois-available real name means "stupid person" in Mandarin. Only noted because there is a company registered with the same name since 1999. On the off chance it's yours, probably not the best marketing in a global wo…
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#26I've got a similar one, but with http 1.0 and partial 1.1 support, multi threaded, etc. in C https://GitHub.com/lionkor/http
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#27Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket. Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#28Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket. Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#29Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket. Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.
Re: Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
#30Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket. Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.