pstuteville/magentor — Issue #13: Add timeout variable to XML RPC
Author: revelindustries
Created: 2011-11-19 03:23:35+00:00
State: open

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