[plt-scheme] Limiting Concurrent Connections to Web Server

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Jan 12 14:02:37 EST 2009

On Mon, Jan 12, 2009 at 11:03 AM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> Continuing on this dead horse down just one more block: if it were
> important, you could even build this abstraction directly into the
> servlets, since it doesn't require the more powerful custodian that
> the dispatchers seem to have (or if dispatchers can be killed, you can
> improve the abstraction to cope with that).

I'm pretty sure it would work as written, actually.

The custodians have this structure:

  (server (servlets servlet_1 ... servlet_n)
             (connections conn_1 ... conn_n)))

The first request to a servlet starts off under the connections, but
when the server realizes it is a servlet, it creates a new custodian
with a different parent to evaluate the module in. If the module
created the limit manager, then the subsequent conns would be able to
communicate with it.


Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.