Changeset 27117 in project


Ignore:
Timestamp:
07/23/12 07:57:57 (9 years ago)
Author:
Jim Ursetto
Message:

chickadee 0.10.1: Limit match result set size (requires chicken-doc 0.4.4) to prevent runaway memory usage. Also added apparmor profile

Location:
release/4/chickadee/trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • release/4/chickadee/trunk/chickadee-config-nginx.scm

    r26104 r27117  
    3434                          (cache-bust "prettify-bundle.js")))
    3535
    36 (maximum-match-results 250)
    37 (maximum-match-signatures 100)
     36(maximum-match-results 150)
     37(maximum-match-signatures 150)
    3838(incremental-search 15)
    3939(incremental-search-delay 50)
  • release/4/chickadee/trunk/chickadee-config.scm

    r26104 r27117  
    3535
    3636(maximum-match-results 250)
    37 (maximum-match-signatures 100)
     37(maximum-match-signatures 250)
    3838(incremental-search 15)
    3939(incremental-search-delay 50)
  • release/4/chickadee/trunk/chickadee.meta

    r26104 r27117  
    99 (needs matchable uri-common intarweb
    1010        (spiffy 4.8) spiffy-request-vars
    11         (chicken-doc 0.4.0)
     11        (chicken-doc 0.4.4)
    1212        sxml-transforms uri-generic (chicken-doc-admin 0.4.0)
    1313        (chicken-doc-html 0.2.5))
  • release/4/chickadee/trunk/chickadee.scm

    r26104 r27117  
    110110
    111111(define (format-id x)
    112   (match (match-nodes x)
     112  (match (match-nodes x (maximum-match-results))
    113113         ((n1)
    114114          (redirect-to (path->href (node-path n1))))
     
    123123
    124124(define (format-re x)
    125   (match-page (match-nodes (irregex x)) x))
     125  (match-page (match-nodes (irregex x) (maximum-match-results))
     126              x))
    126127(define (format-path-re x)
    127   (match-page (match-node-paths/re (irregex x)) x))
     128  (match-page (match-node-paths/re (irregex x) (maximum-match-results))
     129              x))
    128130
    129131(define (match-page nodes match-text)
     
    139141          (node-page
    140142           `("query " ,match-text " ("
     143             ;; Exceeding match-results can't happen because we cap the
     144             ;; result length now, but we keep the logic in place anyway
    141145             ,(maybe (> result-length max-results)
    142146                     `(,max-results " of "))
  • release/4/chickadee/trunk/chickadee.setup

    r26104 r27117  
    11;; -*- scheme -*-
    22
    3 (define +version+ "0.10.0")
     3(define +version+ "0.10.1")
    44
    55(compile -s -O2 -d1 -S chickadee.scm -j chickadee)
Note: See TracChangeset for help on using the changeset viewer.