public
Fork of ry/ebb
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/gnosek/ebb.git
fixed nasty content-length bug.

apparently rails needs "CONTENT_LENGTH" key in the environ instead of 
"HTTP_CONTENT_LENGTH"?  the ragel parser is currently hitting 
content-length headers twice - this is a know bug and mearly an annoyance. 
I plan on working more with the parser soon so I'll leave the bug in for 
the 0.1.0 release.
Ryan Dahl (author)
Mon Mar 17 17:43:00 -0700 2008
commit  0a8a18b02139cfad50d1d7c89b1b1f49ab687fbd
tree    20961b595e9cc5a1a3049456322aaa3fec961459
parent  4c5b7621e02ee3c1a83db849ccf039d75b7da50e
0
...
102
103
104
105
 
 
 
 
106
107
108
109
110
111
112
 
113
114
115
...
102
103
104
 
105
106
107
108
109
110
111
112
113
 
 
114
115
116
117
0
@@ -102,14 +102,16 @@ buffer is set at 40 kilobytes before it writes to file.
0
 
0
 ## Contributions
0
 
0
-Contributions (patches, criticism, advice) are very welcome! The source code
0
+Contributions (patches, criticism, advice) are very welcome!
0
+All should be posted to http://groups.google.com/group/ebbebb or emailed to me.
0
+
0
+The source code
0
 is hosted [github](http://github.com/ry/ebb/tree/master). It can be retrieved
0
 by executing
0
 
0
     git clone git://github.com/ry/ebb.git
0
 
0
-I intend to keep the C code base very small, so do email me before writing any
0
-large additions. Here are some features that I would like to add:
0
+Here are some features that I would like to add:
0
 * HTTP 1.1 Expect/Continue (RFC 2616, sections 8.2.3 and 10.1.1)
0
 * A parser for multipart/form-data
0
 * Optimize and clean up upload handling
...
97
98
99
100
 
101
102
103
...
97
98
99
 
100
101
102
103
0
@@ -97,7 +97,7 @@ module Ebb
0
         Ebb.log.print("Ebb is loading the application...")
0
         Ebb.log.flush()
0
         @app = app(@options)
0
- Ebb.log.puts("loaded")
0
+ Ebb.log.puts("done")
0
         
0
         if @options[:daemonize]
0
           pwd = Dir.pwd # Current directory is changed during daemonization, so store it
...
268
269
270
271
 
272
273
274
...
268
269
270
 
271
272
273
274
0
@@ -268,7 +268,7 @@ void Init_ebb_ext()
0
   DEF_GLOBAL(request_body, "REQUEST_BODY");
0
   DEF_GLOBAL(server_port, "SERVER_PORT");
0
   DEF_GLOBAL(path_info, "PATH_INFO");
0
- DEF_GLOBAL(content_length, "HTTP_CONTENT_LENGTH");
0
+ DEF_GLOBAL(content_length, "CONTENT_LENGTH");
0
   DEF_GLOBAL(http_host, "HTTP_HOST");
0
   
0
   rb_define_singleton_method(mFFI, "server_process_connections", server_process_connections, 0);

Comments

    No one has commented yet.