Skip to content

Instantly share code, notes, and snippets.

@mccv
Created February 10, 2011 01:18
Show Gist options
  • Save mccv/819736 to your computer and use it in GitHub Desktop.
Save mccv/819736 to your computer and use it in GitHub Desktop.
val manager = new SimpleHttpConnectionManager(true)
val connectionParams = new HttpConnectionManagerParams()
val connectTimeoutMs = 500
val socketTimeoutMs = 15000
connectionParams.setConnectionTimeout(connectTimeoutMs)
connectionParams.setSoTimeout(socketTimeoutMs)
manager.setParams(connectionParams)
client = new HttpClient(manager)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment