-
Notifications
You must be signed in to change notification settings - Fork 89
Manage Connectors
oldpig edited this page Mar 22, 2015
·
3 revisions
In Repox,a Connector is bound to an AsyncHttpClient
instance,it is a connection factory. The config of a Connector controls all attributes of the http connections it created to the upstream repo.
- Name
- connectionTimeout:If http connection is not established in this time, this request fails
- idleTimeout:after the http connection is established,if no data in this time, considered dead and retry
- maxConnections:no more connection will be established if exceed this number
- maxConnectionsPerHost:the max connection number one single upstream repo can have
-
credentials :currently support
BASIC
和DIGEST
scheme - Use Proxy :every connector can use a proxy, see Manage Proxies
If the connection to the upstream repo is slow, set idleTimeout
larger to avoid unnecessary retry。On the other hand, if the connection is fast, set it smaller to detect not found
situation earlier.
The default Connector is named “default”。
If a Connector is shared among several upstream repos, set larger maxConnection
and maxConnectionPerHost