Changeset 1948
- Timestamp:
- 09/05/08 13:12:41 (4 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/admin/PageAdvanced.py (modified) (5 diffs)
- cherokee/trunk/admin/PageGeneral.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1947 r1948 1 1 2008-09-05 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * admin/PageAdvanced.py, admin/PageGeneral.py: The keepalive 4 option has been moved to the advanced page. A new option to enable 5 or disable Chunked encoding has been added as well. 2 6 3 7 * cherokee/connection-protected.h, cherokee/handler_cgi_base.c, cherokee/trunk/admin/PageAdvanced.py
r1740 r1948 16 16 ('server!max_connection_reuse', validations.is_positive_int), 17 17 ('server!log_flush_elapse', validations.is_positive_int), 18 ("server!keepalive", validations.is_boolean), 18 19 ('server!keepalive_max_requests', validations.is_positive_int) 19 20 ] … … 36 37 NOTE_REUSE_CONNS = 'Set the number of how many internal connections can be held for reuse by each thread. Default 20.' 37 38 NOTE_FLUSH_TIME = 'Sets the number of seconds between log consolidations (flushes). Default: 10 seconds.' 39 NOTE_KEEPALIVE = 'Enables the server-wide keep-alive support. It increases the performance. It is usually set on.' 38 40 NOTE_KEEPALIVE_RS = 'Maximum number of HTTP requests that can be served by each keepalive connection.' 39 41 NOTE_CHUNKED = 'Allows the server to use Chunked encoding to try to keep Keep-Alive enabled.' 40 42 41 43 class PageAdvanced (PageMenu, FormHelper): … … 60 62 txt += self.Dialog(WARNING, 'warning') 61 63 64 txt += "<h2>Connections management</h2>" 65 table = TableProps() 66 self.AddPropCheck (table, 'Keep Alive', 'server!keepalive', True, NOTE_KEEPALIVE) 67 self.AddPropEntry (table, 'Max keepalive reqs', 'server!keepalive_max_requests', NOTE_KEEPALIVE_RS) 68 self.AddPropCheck (table, 'Chunked Encoding', 'server!chunked_encoding', True, NOTE_CHUNKED) 69 txt += self.Indent(table) 70 62 71 txt += "<h2>System tweaking</h2>" 63 72 table = TableProps() … … 81 90 self.AddPropEntry (table, 'Reuse connections', 'server!max_connection_reuse', NOTE_REUSE_CONNS) 82 91 self.AddPropEntry (table, 'Log flush time', 'server!log_flush_elapse', NOTE_FLUSH_TIME) 83 self.AddPropEntry (table, 'Max keepalive reqs', 'server!keepalive_max_requests', NOTE_KEEPALIVE_RS)84 92 txt += self.Indent(table) 85 93 … … 88 96 89 97 def _op_apply_changes (self, uri, post): 90 self.ApplyChanges ([], post, DATA_VALIDATION) 98 self.ApplyChanges (['server!keepalive', 'server!chunked_encoding'], 99 post, validation = DATA_VALIDATION) 91 100 cherokee/trunk/admin/PageGeneral.py
r1932 r1948 16 16 17 17 DATA_VALIDATION = [ 18 ("server!keepalive", validations.is_boolean),19 18 ("server!ipv6", validations.is_boolean), 20 19 ("server!port.*", validations.is_tcp_port), … … 28 27 NOTE_LISTEN = 'IP address of the interface to bind. It is usually empty.' 29 28 NOTE_TIMEOUT = 'Time interval until the server closes inactive connections.' 30 NOTE_KEEPALIVE = 'Enables the server-wide keep-alive support. It increases the performance. It is usually set on.'31 29 NOTE_TOKENS = 'This option allows to choose how the server identifies itself.' 32 30 NOTE_USER = 'Changes the effective user. User names and IDs are accepted.' … … 60 58 table = TableProps() 61 59 self.AddPropEntry (table, 'Timeout (<i>secs</i>)', 'server!timeout', NOTE_TIMEOUT) 62 self.AddPropCheck (table, 'Keep Alive', 'server!keepalive', True, NOTE_KEEPALIVE)63 60 self.AddPropOptions(table, 'Server Tokens', 'server!server_tokens', PRODUCT_TOKENS, NOTE_TOKENS) 64 61 txt += self.Indent(table) … … 75 72 76 73 def _op_apply_changes (self, uri, post): 77 self.ApplyChanges (['server!ipv6' , 'server!keepalive'], post,78 validation = DATA_VALIDATION)74 self.ApplyChanges (['server!ipv6'], post, validation = DATA_VALIDATION) 75