ruby / xmlrpc

The Ruby standard library package 'xmlrpc'
Other
37 stars 26 forks source link

Define open_timeout and read_timeout independently #45

Open ceritium opened 8 months ago

ceritium commented 8 months ago

Hi, is there any reason why we can't define open_timeout and read_timeout independently?

I would be happy to implement it; I think the following code would be enough:

    def open_timeout=(new_timeout)
      @http.open_timeout = new_timeout
    end

    def read_timeout=(new_timeout)
      @http.read_timeout = new_timeout
    end
kou commented 8 months ago

Could you open a PR for this?

ceritium commented 8 months ago

Sure, I wanted to make sure that my proposal makes sense.