Request #195

Timeout for occi commands

Added by Tino Vázquez almost 2 years ago. Updated over 1 year ago.

Status:Closed Start date:02/25/2010
Priority:Normal Due date:
Assignee:Tino Vázquez % Done:

100%

Category:Cloud APIs
Target version:Release 2.0

Description

It would be handy to have a default timeout for the occi-storage create and an argument to modify said value.

From Claude Noshpitz
--

Perhaps this has been handled already -- if not, a simple patch would look
like this:

--- a/src/cloud/common/CloudClient.rb
+++ b/src/cloud/common/CloudClient.rb
@ -69,6 +69,10 @ module CloudClient ######################################################################
def self.http_start(url, &block)
http = Net::HTTP.new(url.host, url.port)

# could take a long time to transfer large images
+ http.read_timeout = 600
+
if url.scheme=='https'
http.use_ssl = true

A more diligent approach might also provide a command-line option to
explicitly set a timeout value.

Associated revisions

Revision 494ac473
Added by Tino Vázquez over 1 year ago

Request #195 fulfilled, now occi commands may timeout while connected to server
Additionally, commands help section has been homogeneously tabbed.

Revision 2957a991
Added by Ruben S. Montero over 1 year ago

feature #195: Do not set timeout by default

History

Updated by Tino Vázquez almost 2 years ago

For completeness, the timeout can be added to

occi-network
occi-storage
occi-compute

Updated by Ruben S. Montero almost 2 years ago

  • Tracker changed from Feature to Request

Updated by Ruben S. Montero almost 2 years ago

  • Assignee set to Tino Vázquez
  • Target version set to Release 2.0

Updated by Tino Vázquez over 1 year ago

  • % Done changed from 0 to 90

Changes in master.

Needs documentation update

Updated by Tino Vázquez over 1 year ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

Reference set in documentation. Closing.

Also available in: Atom PDF