home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / packback.zip / read.me < prev   
Text File  |  1999-04-27  |  3KB  |  82 lines

  1.  26 April 1999. Timur Kazimrov (timur@r1.sax.inkom.ru) 
  2.     and Daniel Hellerstein (danielh@econ.ag.gov)
  3.  
  4.                                    PACKBACK
  5.  
  6.     An SRE-http pre-reply procedure that strips CRLFs, unused spaces, and comments
  7.     from outgoing HTML documents, for selected clients. 
  8.  
  9.     This can be useful for large HTML documents in low bandwidth situations.
  10.  
  11.     You can also run it in stand-alone mode (possibly even under non-os/2 rexx)
  12.  
  13. A) Setup:
  14.  1)  Copy this to your  GoServe\SRE "working directory"
  15.  2)  Modify the user-changeable parameters (described below)
  16.  
  17.  2)  Edit the ClientsToPack. parameters 
  18.  3) Modify the other user-changeable parameters -- pay special attention to  
  19.     pieces_size and maxdocsize
  20.  
  21.  4) Idenfity PACKBACK as a Pre-Reply procedure (see PREREPLY.DOC for instructions on
  22.     working with Pre-Reply procedures.
  23.  
  24. Notes:
  25.   *  If you are using more then one pre-reply procedure, you'll have to create
  26.      your own "pre-reply" manager that calls each pre-reply procedure in the
  27.      proper sequence.
  28.  
  29.  
  30. B) The User Changeable Parameters
  31.  
  32.  
  33. ClientsToPack
  34.  
  35.     a) set ClientsToPack.0= # of entries
  36.     b) set ClientsToPack.n= a numeric IP address (n=1,..,ClientsToPack.0).
  37.        You can use * as wildcards.
  38.        For example:   if the client's IP address is 199.122.33.1, then
  39.        the following will match:
  40.                 ClientsToPack.3='199.122.33.1'
  41.                 ClientsToPack.3='199.122.*'
  42.                 ClientsToPack.3='199.12*'
  43.  
  44.     Example:
  45.         CLIENTSTOPACK.0=1
  46.         CLIENTSTOPACK.1='199.*' 
  47.  
  48.  
  49. MaxDocSize:
  50.    If the source document is larger than MAXDOCSIZE the compression
  51.    won't be performed. This parameter should be tuned. Size is
  52.    in bytes.
  53.    Note: large files can take a minute or longer to process, which can cause
  54.          an "inactive-timeout". To avoid this,  increase the options-limit-
  55.          end_client_after_inactive GoServe parameter
  56.  
  57.   Example:
  58.      MAXDOCSIZE=1500000  /* All documents larger that 1,500,000 bytes won't be compressed */
  59.  
  60.  
  61. MinDocSize
  62.    If the source document is smaller than MINDOCSIZE the compressing
  63.    won't be performed. This parameter should be tuned. Size is
  64.    in bytes. 
  65.  
  66.    Example:
  67.        MINDOCSIZE=2000  /* All documents smaller that 2000 bytes won't be compressed */
  68.  
  69.  
  70. Pieces_Size
  71.    If size exceeds this limit (in bytes), and is less then maxdocsize, 
  72.    then send  it 'in pieces'.
  73.       This avoids inactive-timeout problems, but also means that
  74.        transfer-encoding and encryption will NOT be attempted
  75.    To disable, set pieces_size > maxdocsize /
  76.  
  77.    Example: 
  78.         Pieces_Size=2000
  79.  
  80.  
  81.  
  82.