Created
November 3, 2017 06:25
-
-
Save suya55/13e186f49f73c10fc687adc1a1e37668 to your computer and use it in GitHub Desktop.
wsClient 설정 참고.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuratino for Play ws | |
play.ws { | |
timeout { | |
# If non null, the connection timeout, this is how long to wait for a TCP connection to be made | |
connection = 10 seconds | |
# If non null, the idle timeout, this is how long to wait for any IO activity from the remote host | |
# while making a request | |
idle = 10 seconds | |
# If non null, the request timeout, this is the maximum amount of time to wait for the whole request | |
request = 10 seconds | |
} | |
# Whether redirects should be followed | |
followRedirects = true | |
# Whether the JDK proxy properties should be read | |
useProxyProperties = true | |
# If non null, will set the User-Agent header on requests to this | |
useragent = null | |
# Whether compression should be used on incoming and outgoing requests | |
compressionEnabled = false | |
# Configuration specific to the Ahc implementation of the WS client | |
ahc { | |
# Pools connections. Replaces setAllowPoolingConnections and setAllowPoolingSslConnections. | |
keepAlive = true | |
# The maximum number of connections to make per host. -1 means no maximum. | |
maxConnectionsPerHost = -1 | |
# The maximum total number of connections. -1 means no maximum. | |
maxConnectionsTotal = 1000 | |
# The maximum number of redirects. | |
maxNumberOfRedirects = 5 | |
# The maximum number of times to retry a request if it fails. | |
maxRequestRetry = 5 | |
# If non null, the maximum time that a connection should live for in the pool. | |
maxConnectionLifetime = 10 seconds | |
# If non null, the time after which a connection that has been idle in the pool should be closed. | |
idleConnectionInPoolTimeout = 10 seconds | |
# Whether the raw URL should be used. | |
disableUrlEncoding = false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment