Skip to content

Spray default config

February 21, 2013

For REST services in Scala I use spray. Default configuration (hard to find documentation about this), by listing it programmatically:

spray.can.client.idle-timeout="10 s"
 spray.can.client.parsing.max-chunk-ext-count=16
 spray.can.client.parsing.max-chunk-ext-name-length=64
 spray.can.client.parsing.max-chunk-ext-value-length=256
 spray.can.client.parsing.max-chunk-size="1m"
 spray.can.client.parsing.max-content-length="8m"
 spray.can.client.parsing.max-header-count=64
 spray.can.client.parsing.max-header-name-length=64
 spray.can.client.parsing.max-header-value-length="8k"
 spray.can.client.parsing.max-response-reason-length=64
 spray.can.client.parsing.max-uri-length="2k"
 spray.can.client.reaping-cycle="100 ms"
 spray.can.client.request-size-hint=512
 spray.can.client.request-timeout="5 s"
 spray.can.client.response-chunk-aggregation-limit="1m"
 spray.can.client.user-agent-header="spray-can/1.1-M7"
 spray.can.parsing.max-chunk-ext-count=16
 spray.can.parsing.max-chunk-ext-name-length=64
 spray.can.parsing.max-chunk-ext-value-length=256
 spray.can.parsing.max-chunk-size="1m"
 spray.can.parsing.max-content-length="8m"
 spray.can.parsing.max-header-count=64
 spray.can.parsing.max-header-name-length=64
 spray.can.parsing.max-header-value-length="8k"
 spray.can.parsing.max-response-reason-length=64
 spray.can.parsing.max-uri-length="2k"
 spray.can.server.chunkless-streaming="off"
 spray.can.server.idle-timeout="120 s"
 spray.can.server.parsing.max-chunk-ext-count=16
 spray.can.server.parsing.max-chunk-ext-name-length=64
 spray.can.server.parsing.max-chunk-ext-value-length=256
 spray.can.server.parsing.max-chunk-size="1m"
 spray.can.server.parsing.max-content-length="8m"
 spray.can.server.parsing.max-header-count=64
 spray.can.server.parsing.max-header-name-length=64
 spray.can.server.parsing.max-header-value-length="8k"
 spray.can.server.parsing.max-response-reason-length=64
 spray.can.server.parsing.max-uri-length="2k"
 spray.can.server.pipelining-limit=8
 spray.can.server.reaping-cycle="100 ms"
 spray.can.server.remote-address-header="off"
 spray.can.server.request-chunk-aggregation-limit="1m"
 spray.can.server.request-timeout="30 s"
 spray.can.server.response-size-hint="1k"
 spray.can.server.server-header="spray-can/1.1-M7"
 spray.can.server.ssl-encryption="off"
 spray.can.server.stats-support="on"
 spray.can.server.timeout-handler=""
 spray.can.server.timeout-timeout="500 ms"
 spray.can.server.transparent-head-requests="on"
 spray.can.server.verbose-error-messages="off"
 spray.io.io-bridge-dispatcher.type="akka.spray.io.IOBridgeDispatcherConfigurator"
 spray.io.parallelism=1
 spray.io.read-buffer-size="4k"
 spray.io.tcp.keep-alive=0
 spray.io.tcp.no-delay=0
 spray.io.tcp.receive-buffer-size=0
 spray.io.tcp.send-buffer-size=0
 spray.routing.file-chunking-chunk-size="512k"
 spray.routing.file-chunking-threshold-size="1m"
 spray.routing.relaxed-header-parsing="off"
 spray.routing.render-vanity-footer="yes"
 spray.routing.verbose-error-messages="off"
 spray.util.log-actor-paths-with-dots="off"
 spray.util.log-actor-system-name="off"
 spray.version="1.1-M7"
Advertisements

From → Scala, Spray

One Comment
  1. Lynoure permalink

    As things like this tend to get out of sync with reality with time, maybe add also the method for getting this config out?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: