Paul J. Davis
8be0226763
Some refactoring work.
...
Remoed alot of code before starting to add more. Trimmed as much as
possible to get to the point that I understood what was going on in each
place.
Split the server code into multiple objects to help my sanity. Arbiter
is now the main class in the master process that keeps track of child
processes and so on and such forth.
The Worker class is responsible for handling incoming requests from the
server socket passed to its constructor.
2009-12-03 01:13:38 -05:00
Benoit Chesneau
701c88c019
fix error
2009-12-03 03:16:59 +01:00
Benoit Chesneau
21d3f7ccd9
working concurrent version. But I think I will rewrite the worker loop
...
to react on events write/read for sockets so I could have better
concurrency. Also i'm not sure that the sleep() is enough.
http://www.friendpaste.com/1KVIOzMJGxm0yjv1qprkbf
2009-12-03 03:03:47 +01:00
Benoit Chesneau
9b3704e395
missing files
2009-12-02 20:53:14 +01:00
Benoit Chesneau
a4685eff77
some commit
2009-12-02 20:52:15 +01:00
Benoit Chesneau
93097b74e6
return response now
2009-12-02 19:43:56 +01:00
Benoit Chesneau
90e87c6f0d
fix bug, now cores/cpus are used correctly
2009-12-02 17:39:16 +01:00
Benoit Chesneau
b9468919e6
some fixes
2009-12-02 01:12:35 +01:00
Benoit Chesneau
d63890c77a
full wsgi environment.
2009-12-01 15:15:27 +01:00
Benoit Chesneau
84d739f1e4
add mssing environ variables
2009-12-01 14:29:40 +01:00
Benoit Chesneau
992b538705
implement request parser object. it isn't useful until i implement the
...
response and wsgi app passing
2009-12-01 14:11:56 +01:00
Benoit Chesneau
5fd09fa3df
tries is fixed in options
2009-11-30 23:09:28 +01:00
Benoit Chesneau
52b950945f
initial commit. working connection handler.
2009-11-30 19:24:21 +01:00