Package: razor
Version: 1:2.85-1

Since a few days razor repeatedly reports "Couldn't parse server greeting",
albeit surely not on every received message. All in all, things seem pretty
similar as reported at [1] 2 years ago. I tried to reproduce this on the command
line and in one of many tries I noticed:

...
Sep 18 15:45:38.912374 check[1656]: [ 5] Connecting to 
discovery.razor.cloudmark.com ...
Sep 18 15:45:39.106779 check[1656]: [ 8] Connection established
Use of uninitialized value $greeting in length at 
/usr/share/perl5/Razor2/Client/Core.pm line 1724.
Use of uninitialized value $greeting in concatenation (.) or string at 
/usr/share/perl5/Razor2/Client/Core.pm line 1724.
Sep 18 15:45:39.107054 check[1656]: [ 4] discovery.razor.cloudmark.com >> 0 
server greeting: 
...

whereas usually I see

Sep 18 15:50:18.097498 check[1714]: [ 5] Connecting to 
discovery.razor.cloudmark.com ...
Sep 18 15:50:18.273057 check[1714]: [ 8] Connection established
Sep 18 15:50:18.273236 check[1714]: [ 4] discovery.razor.cloudmark.com >> 35 
server greeting: sn=D&srl=589&a=1&a=cg&ep4=7542-10
Sep 18 15:50:18.273377 check[1714]: [ 4] discovery.razor.cloudmark.com << 12

Most likely this is just caused by server overload, but why not make the code
retry, say, 3 times if $greeting is undefined!?

Thanks a lot,
Michael

Attachment: pgptCi02Pf1hb.pgp
Description: PGP signature

Reply via email to