pstuteville/magentor

Add timeout variable to XML RPC

nicolasblock opened this issue · 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