Skip Menu |

This queue is for tickets about the Sphinx-Search CPAN distribution.

Report information
The Basics
Id: 30935
Status: resolved
Priority: 0/
Queue: Sphinx-Search

People
Owner: Nobody in particular
Requestors: igor [...] gerdler.ru
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: mod_perl bug
Under mod_perl this code if($!) { $self->_Error("connection to {$self->{_host}}:{$self->{_port}} failed: $!"); return 0; } result in error message: [debug] Connecting to x.x.x.x:3312 [error] connection to {x.x.x.x}:{3312} failed: No such file or directory My workaround is: - connect($fp, $dest); + connect($fp, $dest) or croak q{connect failed: }, $!; and comment above mentioned if block
Thanks for raising this. Looks like bad error handling inherited from original PHP code. I have kept original API (return 0 rather than croak) but fixed the way errors are checked. Should be fixed in 0.08.