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
decrease buffersize - fix readme
Ryan Dahl (author)
2 months ago
commit  bcdd79f30839a0ce14d377ec55337a6739b955d3
tree    fd8a150607d861b0dda3354e2511840975e40b42
parent  38aebaab6cc2ec4144c080a94abfab2cdfd71ade
...
10
11
12
13
14
15
16
17
 
 
 
 
 
 
18
19
20
...
10
11
12
 
 
 
 
 
13
14
15
16
17
18
19
20
21
0
@@ -10,11 +10,12 @@ and a front-end server. It is not meant to serve static files in production.
0
 
0
 ## Design
0
 
0
-The design is similar to the
0
-[Evented Mongrel](http://swiftiply.swiftcore.org/mongrel.html) web server;
0
-except instead of using EventMachine (a ruby binding to libevent), the Ebb
0
-web server is written in C and uses the
0
-[libev](http://software.schmorp.de/pkg/libev.html) event loop library.
0
+The design is similar to the [Evented
0
+Mongrel](http://swiftiply.swiftcore.org/mongrel.html) web server; except
0
+instead of using [EventMachine](http://rubyeventmachine.com/) to drive
0
+network interactions, the Ebb web server handles sockets directly in C and
0
+employs the use of the [libev](http://software.schmorp.de/pkg/libev.html)
0
+event loop.
0
 
0
 Connections are processed as follows:
0
 
...
18
19
20
21
22
 
 
23
24
 
25
26
27
...
18
19
20
 
 
21
22
23
 
24
25
26
27
0
@@ -18,10 +18,10 @@
0
 typedef struct ebb_server ebb_server;
0
 typedef struct ebb_client ebb_client;
0
 
0
-#define EBB_BUFFERSIZE (1024 * (80 + 32) * 2)
0
-#define EBB_MAX_CLIENTS 950
0
+#define EBB_BUFFERSIZE (1024 * (80 + 33))
0
+#define EBB_MAX_CLIENTS 200
0
 #define EBB_TIMEOUT 30.0
0
-#define EBB_MAX_ENV 100
0
+#define EBB_MAX_ENV 500
0
 #define EBB_TCP_COMMON \
0
   unsigned open : 1; \
0
   int fd; \
...
145
146
147
148
149
150
151
...
145
146
147
 
148
149
150
0
@@ -145,7 +145,6 @@ class EnvTest < Test::Unit::TestCase
0
     assert_equal '/', env['REQUEST_PATH']
0
     assert_equal 'HTTP/1.1', env['HTTP_VERSION']
0
     assert_equal '/', env['REQUEST_URI']
0
- assert_equal 'CGI/1.2', env['GATEWAY_INTERFACE']
0
     assert_equal 'GET', env['REQUEST_METHOD']
0
     assert_nil env['FRAGMENT']
0
     assert_nil env['QUERY_STRING']
...
45
46
47
48
49
50
51
...
45
46
47
 
48
49
50
0
@@ -45,7 +45,6 @@ class HttpParserTest < Test::Unit::TestCase
0
     assert_equal '/', env['REQUEST_PATH']
0
     assert_equal 'HTTP/1.1', env['HTTP_VERSION']
0
     assert_equal '/', env['REQUEST_URI']
0
- assert_equal 'CGI/1.2', env['GATEWAY_INTERFACE']
0
     assert_equal 'GET', env['REQUEST_METHOD']
0
     assert_nil env['FRAGMENT']
0
     assert_nil env['QUERY_STRING']

Comments

    No one has commented yet.