18 Commits

Author SHA1 Message Date
Benoit Chesneau
83ebc51520 fix first line parsing and make sure master is killed when ctrl-c is
pressed
2009-12-03 10:38:33 +01:00
Paul J. Davis
34db4a6669 Updates to fix errors under load. 2009-12-03 02:41:50 -05:00
Paul J. Davis
f4f3429d15 Fix test app 2009-12-03 02:16:19 -05:00
Paul J. Davis
5c5dbbd603 Readded Benoit's HTTP code.
ab works again. As does curl it appears.
2009-12-03 02:14:49 -05:00
Paul J. Davis
1cd1cc3a86 Readd HTTP request processing.
I based this on the BaseHTTPServer request handler class because I had
issues with the other request handler. This one is having issues as well
so I should go back to Benoit's but I'm starting to slide towards sleep.
2009-12-03 01:48:49 -05:00
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