Name

frontend_net — Metaproxy Network Server module that accepts Z39.50 and HTTP requests

DESCRIPTION

This is a frontend module. Listens on one or more ports and sends HTTP/Z39.50 messages to other filters.

CONFIGURATION

Element port is a repeating element (1 or more). The text content specifies a listening port.

Element threads is an optional element. The text content specifies number of worker threads for the following filters to use. The default value is 5 (5 worker threads).

Element timeout is an optional element. The text content is treated as an integer that specifies the session timeout in seconds for a client session (using the frontend net filter). The default value is 300 (5 minutes).

Element connect-max is an optional element. The text content is treated as an integer that specifies maximum number of TCP sessions from the same original IP. The special value 0 means : no connection limit. This is also the default if this element is omitted.

Element message is an optional element. If given and non-empty logging is performed by the frontend_net filter (to the log file as given ny option -l).

Element stat-req is an optional element. It specifies a URL path that triggers a report to be generated by the frontend_net filter. By default this report is disabled (same as empty value). The value itself is the path and should be prefixed with a slash. For example /fn_stat.

SCHEMA

# Metaproxy XML config file schemas

namespace mp = "http://indexdata.com/metaproxy"

filter_frontend_net =
  attribute type { "frontend_net" },
  attribute id { xsd:NCName }?,
  attribute name { xsd:NCName }?,
  element mp:threads { xsd:integer }?,
  element mp:port {
    attribute route { xsd:NCName }?,
    attribute max_recv_bytes { xsd:integer }?,
    attribute port { xsd:integer }?,
    attribute cert_fname { xsd:string }?,
   xsd:string
  }+,
  element mp:timeout { xsd:integer }?,
  element mp:connect-max { xsd:integer }?,
  element mp:message { xsd:string }?,
  element mp:stat-req { xsd:string }?



   

EXAMPLES

A typical configuration looks like this:

    <filter type="frontend_net">
     <threads>10</threads>
     <port>@:9000</port>
     <message>FN</message>
     <stat-req>/fn_stat</stat-req>
    </filter>

   

SEE ALSO

metaproxy(1)

COPYRIGHT

Copyright (C) 2005-2015 Index Data