webserver: use pthreads to handle multiple clients
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 16 Oct 2013 20:45:37 +0000 (22:45 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 30 Nov 2013 11:38:26 +0000 (12:38 +0100)
commit575fe03ee310c740bfa2950aa55b3358e8a60eee
tree930d6ef6fe5a1c7f54a8920d04bd850698430caf
parentd23bda42456bd092751deb24d8295c27a15721e8
webserver: use pthreads to handle multiple clients

Clients like browsers prefer to open many connections and keep them open
for a while, so that pages with lot of subelements would take a while to
load (if at all), by using threads as all servers do some way or another
we can resolve this. libapt is not intended to be pthread-safe and stuff
like the storage of the last return code doesn't make too much sense if
multiple clients interact with us, but it is good enough for now and an
other interesting (mis)use of libapt in general.

Git-Dch: Ignore
test/interactive-helper/aptwebserver.cc
test/interactive-helper/makefile