Closed scr34m closed 11 years ago
I refactored your pull request and added an extra method for connecting with a timeout. My intention was to make the timeout explicit for the connection method instead of setting a global.
Does that seem better ? I find it more clearer.
https://github.com/deepfryed/beanstalk-client/compare/connect-timeout
please find the changes here
Yes this is cleaner for everyone to use explicit connect function with timeout parameters. I've thought about this possible solution, but i was too lazy to do sorry :(
Thank you for refactoring and accepting the idea!
I didn't explained why need this, i'm making a beanstalkd UDF plugin for MySQL and default ~10 sec timeout was a bit odd. Now i could change it to 1 sec or something lower, will try in my instance when it merged.
no problem, any contribution is appreciated :)
merged changes in pull/7
Give the rights to specify connection timeout values.