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  54d1cbf549d79c1e2cc0a82723249eca53ce040e
tree    0683657dd8f0ad11afb246817d868613cc2131f7
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 + 32*2))
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; \

Comments

    No one has commented yet.