I need to POST to another server rather frequently in my Rails app, but it takes foreeever. The catch is that I don't need the response. Is there any way to speed things up by sending the request and then dropping the connection without waiting for a response, without getting into delayed job or event machine? If those are the only option, I can deal with it, but it would make life simpler not to have to.
Here's what I have now:
remoteAddress = 'http://remote.server.address/'
params = {
'a' => a,
'b' => b }
url = URI.parse(remoteAddress)
Net::HTTP.post_form(url, params)