View | Details | Raw Unified | Return to bug 41767
Collapse All | Expand All

(-)a/debian/scripts/koha-plack (-1 / +3 lines)
Lines 89-94 start_plack() Link Here
89
    [ -z $PLACK_MAX_REQUESTS ] && PLACK_MAX_REQUESTS="50"
89
    [ -z $PLACK_MAX_REQUESTS ] && PLACK_MAX_REQUESTS="50"
90
    PLACK_WORKERS=$(run_safe_xmlstarlet $instancename plack_workers)
90
    PLACK_WORKERS=$(run_safe_xmlstarlet $instancename plack_workers)
91
    [ -z $PLACK_WORKERS ] && PLACK_WORKERS="2"
91
    [ -z $PLACK_WORKERS ] && PLACK_WORKERS="2"
92
    PLACK_BACKLOG=$(run_safe_xmlstarlet $instancename plack_backlog)
93
    [ -z $PLACK_BACKLOG ] && PLACK_BACKLOG=$(( $PLACK_WORKERS * $PLACK_MAX_REQUESTS / 2 ))
92
94
93
    instance_user="${instancename}-koha"
95
    instance_user="${instancename}-koha"
94
96
Lines 100-106 start_plack() Link Here
100
    daemonize="--daemonize"
102
    daemonize="--daemonize"
101
    logging="--access-log /var/log/koha/${instancename}/plack.log \
103
    logging="--access-log /var/log/koha/${instancename}/plack.log \
102
             --error-log /var/log/koha/${instancename}/plack-error.log"
104
             --error-log /var/log/koha/${instancename}/plack-error.log"
103
    max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}"
105
    max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS} --backlog ${PLACK_BACKLOG}"
104
106
105
    # Enable debugger?
107
    # Enable debugger?
106
    if [ "$debugger" = "yes" ] && [ "$environment" = "development" ]; then
108
    if [ "$debugger" = "yes" ] && [ "$environment" = "development" ]; then
(-)a/debian/templates/koha-conf-site.xml.in (-1 / +3 lines)
Lines 339-344 __END_SRU_PUBLICSERVER__ Link Here
339
 <!-- Configuration for Plack -->
339
 <!-- Configuration for Plack -->
340
 <plack_max_requests>50</plack_max_requests>
340
 <plack_max_requests>50</plack_max_requests>
341
 <plack_workers>2</plack_workers>
341
 <plack_workers>2</plack_workers>
342
 <!-- The parameter plack_backlog is the size of the request backlog queue. -->
343
 <!-- The default is (max_requests*workers)/2 -->
344
 <!-- <plack_backlog>50</plack_backlog> -->
342
345
343
 <!-- Configuration for X-Forwarded-For -->
346
 <!-- Configuration for X-Forwarded-For -->
344
 <!--
347
 <!--
345
- 

Return to bug 41767