diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-10 23:30:06 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-10 23:30:06 +0300 |
commit | bd2d24cbb86033c408bf1f5804f588cf4d86a48f (patch) | |
tree | 81ccf3934ef2ddf60616594cb785f886811a1a09 /moses/Parameter.cpp | |
parent | 394a26222d30685bf42577fcd24f0c0c0610d8e7 (diff) |
Integrated more finegrained abyss server control from mosesserver.cpp; mosesserver is now officially deprecated.
Diffstat (limited to 'moses/Parameter.cpp')
-rw-r--r-- | moses/Parameter.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/moses/Parameter.cpp b/moses/Parameter.cpp index f379b6904..183519247 100644 --- a/moses/Parameter.cpp +++ b/moses/Parameter.cpp @@ -216,11 +216,25 @@ Parameter::Parameter() AddParam(server_opts,"server", "Run moses as a translation server."); AddParam(server_opts,"server-port", "Port for moses server"); AddParam(server_opts,"server-log", "Log destination for moses server"); + AddParam(server_opts,"serial", "Run server in serial mode, processing only one request at a time."); + + AddParam(server_opts,"server-maxconn", + "Max. No of simultaneous HTTP transactions allowed by the server."); + AddParam(server_opts,"server-maxconn-backlog", + "Max. No. of requests the OS will queue if the server is busy."); + AddParam(server_opts,"server-keepalive-maxconn", + "Max. No. of requests the server will accept on a single TCP connection."); + AddParam(server_opts,"server-keepalive-timeout", + "Max. number of seconds the server will keep a persistent connection alive."); + AddParam(server_opts,"server-timeout", + "Max. number of seconds the server will wait for a client to submit a request once a connection has been established."); + + // session timeout and session cache size are for moses translation session handling + // they have nothing to do with the abyss server (but relate to the moses server) AddParam(server_opts,"session-timeout", "Timeout for sessions, e.g. '2h30m' or 1d (=24h)"); AddParam(server_opts,"session-cache-size", string("Max. number of sessions cached.") +"Least recently used session is dumped first."); - AddParam(server_opts,"serial", "Run server in serial mode, processing only one request at a time."); po::options_description irstlm_opts("IRSTLM Options"); AddParam(irstlm_opts,"clean-lm-cache", |