-
Notifications
You must be signed in to change notification settings - Fork 134
multiple workers cannot have names that start with the same letter #39
Comments
It is insane to me that I've used this for 2 years -- a half dozen projects -- and have never had 2 workers that start w/ the same letter! |
That's how it always happens to me. My code works great for me but as soon as someone else starts using it bring on the bugs. Another option if you want to support duplicate starting letters is do a mapping for the worker array key sequence to an alpha value. This would make the max number of workers 52 per daemon but that would be crazy to have anywhere close to that. |
Ben, I spent some time working on this over the weekend. I have a point release I'm preparing with the changes we already discovered -- still need to replace ftok with a solution the way you describe. |
It happens to me too. |
I have it fairly stable now but I had to scrap the SysV inter-process On Wed, Oct 29, 2014 at 1:48 AM, edwinxie [email protected] wrote:
|
@brunnels bit of a late reply but I'm having the same problems as mention in this ticket, care to share the code for your solution? |
We're using this in production for a while now but I have been out of that particular group for 2+years. I can get the current code and send it to you if you would like? |
yes that'd be great thanks |
Here you go. If there's anything missing let me know. |
Thanks |
If you have multiple workers their names can't start with the same letter. It's case sensitive. Took me all morning before I tracked down what was causing the error.
This stems from using ftok which takes a single character string on line 538 of Mediator.php. Some error checking should be added to check for this scenario and throw an exception.
The text was updated successfully, but these errors were encountered: