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

Nuba Princigalli nuba at fastmail.fm
Tue Aug 3 07:20:47 PDT 2010


Caros,

Uma dica: voce pode gerar diff entre versoes de um modulo no search.cpan.org:

* um modulo
http://search.cpan.org/~dormando/Gearman-1.11/

* clicando em 'other tools' voce cai em
http://search.cpan.org/tools/Gearman-1.11

* um exemplo de diff pra esse modulo
http://search.cpan.org/diff?from=Gearman-1.10&to=Gearman-1.11

Abraco,

Nuba


On Tue, 3 Aug 2010, Daniel de Oliveira Mantovani wrote:

> Date: Tue, 3 Aug 2010 11:07:17 -0300
> From: Daniel de Oliveira Mantovani <daniel.oliveira.mantovani em gmail.com>
> Reply-To: saopaulo-pm em mail.pm.org
> To: saopaulo-pm em mail.pm.org
> Subject: Re: [SP-pm]	Gearman não passando todos caracteres como argumento
> 
> 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."
> _______________________________________________
> SaoPaulo-pm mailing list
> SaoPaulo-pm em pm.org
> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>


More information about the SaoPaulo-pm mailing list