ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Ryan Dahl (author)
Sat Feb 23 03:54:48 -0800 2008
commit  cc7e88c3cdb76168e3717a51b74b872871e26695
tree    cfbeaec25a02fd0d134da58416a8af26876317f7
parent  0a7f5a523e92d1b1462b89353b2a64331abbb4d0
ebb /
name age message
file README Sun Feb 10 07:22:24 -0800 2008 Added ebb_rails executable. [Ryan Dahl]
file Rakefile Sun Feb 17 09:45:36 -0800 2008 File reorganization [Ryan Dahl]
directory benchmark/ Sat Feb 23 03:54:48 -0800 2008 Misc clean up [Ryan Dahl]
directory bin/ Sat Feb 23 03:54:48 -0800 2008 Misc clean up [Ryan Dahl]
directory libev/ Sun Feb 17 09:45:36 -0800 2008 File reorganization [Ryan Dahl]
directory ruby_lib/ Sat Feb 23 03:54:48 -0800 2008 Misc clean up [Ryan Dahl]
directory src/ Sat Feb 23 03:54:48 -0800 2008 Misc clean up [Ryan Dahl]
README
Ebb Web Server
Version 0.0.1

= Design

The design is similar to the Evented Mongrel web server; except instead of
using EventMachine (a ruby binding to libevent), the Ebb web server is written
in C and uses the libev event loop library (http://software.schmorp.de/pkg/libev.html).

Connections are processed as follows:

1. libev loops and waits for incoming connections.

2. When Ebb can read from a client socket, it passes the buffer into the
   mongrel state machine which parses the headers into name value pairs. 

3. Ebb starts passes the request information and peer socket to a user
   supplied callback. 

4. The included Ruby binding, supplying this callback transforms the request
   into a Rack compatible "env" variable and passes it on a Rack adapter.

Because Ebb is written entirely in C, other language bindings can be added to
make it useful to Non-Ruby frameworks. For example a Python WSGI interface is
forthcoming.

Ebb aims to be the smallest and fastest web server possible specifically for
doing the processing for web frameworks like Rails. 

It's less than 1000 lines of C code!

= TODO, ordered
* Log levels
* Option to listen on unix sockets instead of tcp
* ebb_merb executable
* Python binding
* Better build system - using scon? (http://www.scons.org/)
  Not autoconf.

= License

Copyright (c) 2007 Ryan Dahl

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.