Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Net::Twitter::Stream socket issue

by Steve_p (Priest)
on Apr 17, 2012 at 22:28 UTC ( #965565=note: print w/ replies, xml ) Need Help??


in reply to Net::Twitter::Stream socket issue

The first thing you need to do is make sure you have IO::Socket::SSL installed. It is a prerequisite for Net::Twitter::Stream, but it isn't listed in the Makefile.PL, so it may not have been installed. There are a couple several year old bugs on this for this module.

After checking that, it's time to deal with Net::Twitter::Stream. It has some serious issues. Generally, with system calls, you want to be checking return values and $!. If they are undef or 0 where something useful should be returned, checking $! is essential to get the error back. Net::Twitter::Stream doesn't check for errors and return them to the code calling it in a way that can be useful. Basically, you're screwed. If there is a better alternative module, I'd suggest switching to it.


Steve_p

Test your modules with bleadperl!

  rsync -avz rsync://public.activestate.com/perl-current/ .
  ./Configure -des -Dusedevel -Dprefix=/path/to/test/perl
  make test
  make install

Now, please test you modules! If you have test failures that don't happen with Perl 5.8.8, send a simplified test case to

perlbug at perl.org


Comment on Re: Net::Twitter::Stream socket issue
Select or Download Code
Re^2: Net::Twitter::Stream socket issue
by sethviebrock (Initiate) on Apr 19, 2012 at 19:00 UTC
    Thank you so much! May have to write something custom...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-10-02 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls