On Thu, 29 May 2008 01:15:57 +0200, css css@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.