Log in

No account? Create an account
Public announcement for The Ghetto Webserver. - Adventures in Engineering — LiveJournal
The wanderings of a modern ronin.

Ben Cantrick
  Date: 2006-02-08 21:38
  Subject:   Public announcement for The Ghetto Webserver.
Welcome to the home page of the Ghetto Webserver. This is a quick hack, non-HTTP/1.0 complaint webserver I coded up in an afternoon, and refined a bit in another. It's written in plain C, using the UNIX sockets API. The original version was ~180 lines, alpha 2 (below) is up to ~250. I'm putting it up in the hope that it may be useful and/or interesting for people attempting to learn sockets, or those who want a simple example of a webserver implementation without too much extra crud that might obscure the basic functionality, or people looking for an EXTREMELY simple, lightweight and free-as-in-beer webserver for embedded applications.


I liked this little project I hacked up so much, that I decided I'd make a web page for it. Enjoy!
Post A Comment | 4 Comments | | Link

Ben Cantrick
  User: mackys
  Date: 2006-02-09 02:35 (UTC)
  Subject:   thttpd vs. the world.
http://www.acme.com/software/thttpd/benchmarks.html is an interesting set of benchmarks for various webservers. I was disappointed that abelits's fhttpd was not included in the tests, I would have really liked to see how it stacked up using their tests.

In any event, if you're looking for a minimal yet blazing fast webserver that IS ready for primetime (as opposed to gws here), this Acme Software thttpd looks darn good. Though remember the caution given on their benchmarks page:

Don't get too excited over the performance figures. Most of these servers have enough oomph to keep a T1 saturated, running on a lowly 100MHz Pentium or maybe even a 486.
Reply | Thread | Link

Ben Cantrick
  User: mackys
  Date: 2006-02-09 03:22 (UTC)
  Subject:   http://www.fhttpd.ORG !
I real smart internet user!

FHTTPd is at http://www.fhttpd.ORG, not http://www.fhttpd.com .
Reply | Parent | Thread | Link

Alex Belits
  User: abelits
  Date: 2006-02-09 03:00 (UTC)
  Subject:   Patch
patch -- compilation on Linux, typo in string constant, added cleanup to makefile.

strcasestr appeared in glibc and FreeBSD 5.0 -- Linux considers it nonstandard and only includes when _GNU_SOURCE is defined.
Reply | Thread | Link

Ben Cantrick
  User: mackys
  Date: 2006-02-09 03:33 (UTC)
  Subject:   Excellent, thanks!
Version alpha 3 is up!

Reply | Parent | Thread | Link

May 2015