This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Ryan Dahl (author)
Sat Feb 09 09:57:35 -0800 2008
commit a1cb4f1217379fd3115ceaca533e5319471f71e0
tree 2f706b9c8feb5a2aea943aab18e96b37b268f371
parent 60c2af505ddde70710a36aa636a6c6573b7bb3cc
tree 2f706b9c8feb5a2aea943aab18e96b37b268f371
parent 60c2af505ddde70710a36aa636a6c6573b7bb3cc
ebb /
| name | age | message | |
|---|---|---|---|
| |
Makefile | Fri Feb 08 15:05:26 -0800 2008 | [Ryan Dahl] |
| |
README | Sun Feb 03 18:07:12 -0800 2008 | [Ryan Dahl] |
| |
ebb.c | Sat Feb 09 09:57:35 -0800 2008 | [Ryan Dahl] |
| |
ebb.h | Fri Feb 08 15:05:26 -0800 2008 | [Ryan Dahl] |
| |
ebb_test.c | Mon Feb 04 16:50:10 -0800 2008 | [Ryan Dahl] |
| |
mongrel/ | Mon Feb 04 16:50:10 -0800 2008 | [Ryan Dahl] |
| |
parser_callbacks.h | Fri Feb 08 15:05:26 -0800 2008 | [Ryan Dahl] |
| |
ruby_binding/ | Sat Feb 09 09:57:35 -0800 2008 | [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 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! wc -l ebb.c ebb.h parser_callbacks.h ruby_binding/ebb_ext.c = TODO, ordered * Put client's address into env * Log levels * Option to listen on unix sockets instead of tcp * 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.




