[JDEV] XML::Stream - Can't call method "flush" on an undefined value
Miguel A.L. Paraz
map at internet.org.ph
Wed Oct 10 09:29:22 CDT 2001
On Wed, Oct 10, 2001 at 03:11:39PM +0100, DJ Adams wrote:
> > Can't call method "flush" on an undefined value at /usr/lib/perl5/site_perl/5.6.0/XML/Stream.pm line 1260.
> Random guess: flush is a method called on a socket. If a connection
> attempt is being refused by the Jabber server due to rating or karma,
> which might be the case here ("consistently fails on the 3rd login"),
> then that socket might not actually exist in Perl space, hence the
> undefined value.
> To test out this theory, stick some sleep statements in there, also
> check the error.log from the Jabber server for indications of
> socket limiting etc.
I think that's it.
Since this is on an authenticate request, shouldn't the XML::Stream code
handle it gracefully and return an error, instead of dying?
(I can give a shot at fixing it if I'm given a hint how)
> What version of XML::Stream are you using? There's a flush call on
> line 1258 in 1.12 of XML/Stream.pm ...
I'll have to check (on another PC), but I think the problem is not that
there is no flush call, but it's called with from an undefined reference.
More information about the JDev