[SP-pm] Gearman não passando todos caracteres como argumento

Daniel de Oliveira Mantovani daniel.oliveira.mantovani at gmail.com
Tue Aug 3 07:07:17 PDT 2010


Saco, apertei sem querer.

Então, o problema foi incompatibilidade de versões. A versão mais
atual não se "comunica direito" com versões anteriores, pode ser uma
particularidade do Gearman::XS ou foi alguma alteração no protocolo.

Se vocês baixaram a última stable do Gearman, e usarem o
Gearman::Worker/Gearman::Client e não conseguirem se comunicar é
porque provavelmente esses módulos estão desatualizados.

[]'s

2010/8/3 Daniel de Oliveira Mantovani <daniel.oliveira.mantovani em gmail.com>:
> Não, nada teve nada há ver com o encoding.
>
> 2010/8/3 Lindolfo "Lorn" Rodrigues <lorn.br em gmail.com>:
>> Renato é bem provavel que foi isso sim, e resolveu quando ele compilou
>> manualmente graças as maravilhas da variavel $LANG :)
>>
>> 2010/8/3 Renato Santos <renato.cron em gmail.com>
>>>
>>> Tem certeza que não foi pau de encoding?
>>>
>>> 2010/8/2 Daniel de Oliveira Mantovani
>>> <daniel.oliveira.mantovani em gmail.com>
>>>>
>>>> Resolvei pessoal, foi muito trabalhoso e cansativo. Tive que compilar
>>>> manualmente o Gearman-0.10 na mão, depois baixar manualmente o
>>>> Gearman-XS-0.07 do CPAN.
>>>>
>>>>
>>>>
>>>> 2010/8/2 Daniel de Oliveira Mantovani
>>>> <daniel.oliveira.mantovani em gmail.com>:
>>>> > Pessoal, quando eu rodo todos os serviços localmente (Worker/Job
>>>> > Server/Client), eu não tenho problema. Porém, quando eu executo o
>>>> > worker remotamente, ele não passa um caractere. Para ser preciso o
>>>> > último.
>>>> >
>>>> > Exemplo,
>>>> >
>>>> > <worker/ip=192.168.1.2>
>>>> > sub func {
>>>> >  my $job = shift;
>>>> >  my $argh = $job->workload;
>>>> > }
>>>> > </worker/>
>>>> >
>>>> > <client/ip=192.168.1.3>
>>>> > func("água")
>>>> > </client/
>>>> >
>>>> > Se eu passar "água", eu vou ter em $argh. "águ". Isso não estava
>>>> > acontecendo antes localmente.
>>>> > Alguém tem alguma idéia ?
>>>> >
>>>> > --
>>>> > http://www.danielmantovani.com
>>>> >
>>>> > "If you’ve never written anything thoughtful, then you’ve never had
>>>> > any difficult, important, or interesting thoughts. That’s the secret:
>>>> > people who don’t write, are people who don’t think."
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> http://www.danielmantovani.com
>>>>
>>>> "If you’ve never written anything thoughtful, then you’ve never had
>>>> any difficult, important, or interesting thoughts. That’s the secret:
>>>> people who don’t write, are people who don’t think."
>>>> _______________________________________________
>>>> SaoPaulo-pm mailing list
>>>> SaoPaulo-pm em pm.org
>>>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>>
>>>
>>>
>>> --
>>> Renato Santos
>>> http://www.renatocron.com/blog/
>>>
>>> _______________________________________________
>>> SaoPaulo-pm mailing list
>>> SaoPaulo-pm em pm.org
>>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>
>>
>>
>> --
>> lorn at lornlab dot org
>> Lindolfo "Lorn" Rodrigues
>>
>>
>> _______________________________________________
>> SaoPaulo-pm mailing list
>> SaoPaulo-pm em pm.org
>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>
>
>
>
> --
> http://www.danielmantovani.com
>
> "If you’ve never written anything thoughtful, then you’ve never had
> any difficult, important, or interesting thoughts. That’s the secret:
> people who don’t write, are people who don’t think."
>



-- 
http://www.danielmantovani.com

"If you’ve never written anything thoughtful, then you’ve never had
any difficult, important, or interesting thoughts. That’s the secret:
people who don’t write, are people who don’t think."


More information about the SaoPaulo-pm mailing list