8 Commits

Author SHA1 Message Date
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
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
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
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
52b950945f initial commit. working connection handler. 2009-11-30 19:24:21 +01:00