[hunchentoot-devel] Using multiple Hunchentoot-Requests in one thread

Edi Weitz edi at agharta.de
Thu May 29 08:00:49 UTC 2008


On Thu, 29 May 2008 01:15:57 +0200, css <css at swissjabber.ch> wrote:

> Hm. I guess what I want is best explained as some "Polling-Mode" for
> requests. I.e. having a main loop in one thread, "polling" or
> waiting for new requests, an then scheduling myself the input and
> output inside this one thread. My problem is that the number of
> threads I can use is bounded at a low bound, and I do not want to
> "waste" threads for something, that doesnt need them - i.e. I would
> like to schedule the requests and their processing myself, not
> relying on some threaded interface. I wonder if this is possible
> with hunchentoot.

IIUC this could be possible with the current (unreleased) development
version of Hunchentoot.  Look at the "connection manager" class Hans
has written and see if you can write your own connection manager to
achieve what you want.

  http://bknr.net/trac/browser/trunk/thirdparty/hunchentoot



More information about the Tbnl-devel mailing list