gearman-ruby icon indicating copy to clipboard operation
gearman-ruby copied to clipboard

undefined method `hostport' for <ip:port> (connected: false):Gearman::Connection

Open tamoyal opened this issue 10 years ago • 3 comments

I think

message = "Network error on read from #{connection.hostport} while adding job, marking server bad"

should be

message = "Network error on read from #{connection.to_host_port} while adding job, marking server bad"

I don't see hostport defined in the Connection class

tamoyal avatar Dec 24 '14 03:12 tamoyal

Was this fixed?

lucaslain avatar Mar 18 '15 17:03 lucaslain

Hmmm not sure I ever got the pull request completed for this but here's the fix: https://github.com/tamoyal/gearman-ruby/commit/4d03d23f2e7aec03fe9d359ffc23dce04ef7439a ...quite simple

And here is the PR: https://github.com/johnewart/gearman-ruby/pull/27

tamoyal avatar Mar 20 '15 06:03 tamoyal

@johnewart any chance we can get this pulled in?

tamoyal avatar Mar 13 '18 19:03 tamoyal