Skip to content

Add timeout variable to XML RPC #13

Open
nicolasblock opened this Issue Nov 19, 2011 · 0 comments

1 participant

@nicolasblock

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.