[PATCH] Stop gearman from opening a random port on startup
Ask Bjørn Hansen
ask at develooper.com
Wed Dec 19 07:18:53 UTC 2007
On Dec 18, 2007, at 4:05 AM, Pascal Hakim wrote:
> The attached patch fixes that, hope it helps. I can't decide whether
> it'd be better to not call $self->create_listening_sock() in
> Gearman::Server->new() if we don't a port instead, but at least the
> patch illustrates the problem. =-)
I'd suggest having new() not call create_listening_sock if it doesn't
want one. And if you want to "future proof" it, then make
create_listening_sock croak if it doesn't get a portnum.
- ask
--
http://develooper.com/ - http://askask.com/
More information about the Gearman
mailing list