magentor icon indicating copy to clipboard operation
magentor copied to clipboard

Add timeout variable to XML RPC

Open nicolasblock opened this issue 13 years ago • 0 comments

Magento can be very slow, so it could be cool to add the timeout for the XML RPC client as a config variable. I modified the gem to use XMLRPC.Client.new3 like this

@client = XMLRPC::Client.new3( :host => config[:host], :path => config[:path], :port => config[:port], :timeout => config[:timeout] )

But new3 takes a hash so I'm sure there are more elegant ways of passing the config vars to it

nice wrapper! peace,

Nick

nicolasblock avatar Nov 19 '11 03:11 nicolasblock