ry / ebb fork watch download tarball
public this repo is viewable by everyone
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Ryan Dahl (author)
2 months ago
commit  a791fbb16843b516dbb8e50aa9e4e007c391c927
tree    21e9aba300b3e4eae2482293d8c625b472c35840
parent  e371bdae561942f088985098dece7eed08e28e85
ebb /
name age message
folder README Tue Feb 26 16:29:33 -0800 2008 small fixes - clean up - tests [Ryan Dahl]
folder Rakefile Tue Feb 26 17:41:31 -0800 2008 start on unified bench script [Ryan Dahl]
folder VERSION Sat Feb 23 10:28:25 -0800 2008 add version file [Ryan Dahl]
folder benchmark/ Tue Feb 26 17:41:31 -0800 2008 start on unified bench script [Ryan Dahl]
folder bin/ Tue Feb 26 17:06:52 -0800 2008 more small changes - ebb_rails working [Ryan Dahl]
folder libev/ Sun Feb 17 09:45:36 -0800 2008 File reorganization [Ryan Dahl]
folder ruby_lib/ Tue Feb 26 17:06:52 -0800 2008 more small changes - ebb_rails working [Ryan Dahl]
folder src/ Tue Feb 26 16:29:33 -0800 2008 small fixes - clean up - tests [Ryan Dahl]
README
Ebb Web Server

= 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 handles any file uploads

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

5. The Ruby binding, ebb_ruby.c, supplying this callback transforms the
   request into a Rack compatible "env" hash and passes it on a Rack
   adapter.

Because Ebb is written mostly 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. 

= TODO
* Option to listen on unix sockets instead of tcp
* Python binding

= 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.