► |  | Web Server: PLT HTTP Server

1 | Running the Web Server
2 | Writing Servlets
3 | Extending the Web Server
4 | Troubleshooting and Tips
5 | Acknowledgements
| Index

► | 2 | Writing Servlets

2.1 | Defining a Servlet
2.2 | APIs
2.3 | Common Contracts
2.4 | HTTP
2.5 | Web Interaction
2.6 | Stateless Web Interaction
2.7 | Web Cells
2.8 | File Boxes
2.9 | Stateless Web Parameters
2.10 | Formlets
2.11 | Templates
2.12 | Continuation Managers

▼ | 2.12 | Continuation Managers

2.12.1 | General
2.12.2 | No Continuations
2.12.3 | Timeouts
2.12.4 | LRU

On this page:

create-timeout-manager

Version: 4.1.4
top← prev up next →

##### 2.12.3`` Timeouts

(require web-server/managers/timeouts)

"managers/timeouts.ss" defines a manager constructor:

(create-timeout-manager |  | instance-exp-handler |  |  |  |
|  | instance-timeout |  |  |  |
|  | continuation-timeout) |  | → |  | manager?

instance-exp-handler : expiration-handler/c
instance-timeout : number?
continuation-timeout : number?

Instances managed by this manager will be expired instance-timeout seconds after the last time it is accessed. If an expired instance is looked up, the exn:fail:servlet-manager:no-instance exception is thrown with instance-exp-handler as the expiration handler.

Continuations managed by this manager will be expired continuation-timeout seconds after the last time it is accessed. If an expired continuation is looked up, the exn:fail:servlet-manager:no-continuation exception is thrown with instance-exp-handler as the expiration handler, if no expiration-handler was passed to continuation-store!.

adjust-timeout! corresponds to reset-timer! on the timer responsible for the servlet instance.

This manager has been found to be... problematic... in large-scale deployments of the Web Server .

top← prev up next →