2015-12-10 6 views

ответ

1

Это настройка конфигурации. См. this или this doc для всех доступных настроек в конфигурации Spay.

Этот параметр включает его:

spray.can.host-connector.pipelining = off 

И это один должен быть> 1 чтобы он мог эффективно:

spray.can.server.pipelining-limit = 1 

По умолчанию конвейерная выключен.

Соответствующее описание каждого параметра:

# The maximum number of requests that are accepted (and dispatched to 
# the application) on one single connection before the first request 
# has to be completed. 
# Incoming requests that would cause the pipelining limit to be exceeded 
# are not read from the connections socket so as to build up "back-pressure" 
# to the client via TCP flow control. 
# A setting of 1 disables HTTP pipelining, since only one request per 
# connection can be "open" (i.e. being processed by the application) at any 
# time. Set to higher values to enable HTTP pipelining. 
# Set to 'disabled' for completely disabling pipelining limits 
# (not recommended on public-facing servers due to risk of DoS attacks). 
# This value must be > 0 and <= 128. 
pipelining-limit = 1 

# If this setting is enabled, the `HttpHostConnector` pipelines requests 
# across connections, otherwise only one single request can be "open" 
# on a particular HTTP connection. 
pipelining = off