Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken pipe #3

Open
duramato opened this issue Jun 21, 2016 · 7 comments
Open

Broken pipe #3

duramato opened this issue Jun 21, 2016 · 7 comments
Labels

Comments

@duramato
Copy link

duramato commented Jun 21, 2016

When using many rss sources it seems it can't coup with that, and and throws a Broken pipe when connecting to the irc channel/idenitfing. I tried adding sleep()s but didn't worked .
The traceback is bellow:

Traceback (most recent call last):
  File "rss2irc.py", line 138, in <module>
    update()
  File "rss2irc.py", line 136, in update
    feed_refresh()
  File "rss2irc.py", line 93, in feed_refresh
    msg(defaultChannel, m)
  File "rss2irc.py", line 65, in msg
    s.send('PRIVMSG '+str(defaultChannel)+' :'+str(msg)+'\r\n')
socket.error: [Errno 32] Broken pipe
@areebbeigh
Copy link
Owner

areebbeigh commented Jun 22, 2016

Thank you for reporting the problem duramato, could you also include the RSS sources you put in the script please? I will try to fix it as soon as possible.

@duramato
Copy link
Author

I have 10 rss sources, some are private ones i would rather not share. Try maybe reproduce with 10 rss feeds you know, if that doesn't work i can share you the sources privatly if its ok to you

@areebbeigh
Copy link
Owner

areebbeigh commented Jun 23, 2016

Alright, I will start working on the problem soon, hopefully in a wk or two. Busy with exams.

@areebbeigh
Copy link
Owner

Hi, I couldn't reproduce this issue on v2.1 (or before) with multiple feed sources, I think what might have caused that broken pipe was a ping timeout on the IRC server.

@duramato
Copy link
Author

Which IRC network did you try? It happens to me on freenode

@areebbeigh
Copy link
Owner

I tried it on freenode as well.

@duramato
Copy link
Author

Mm I'll have to try the new version. I don't know the base code but can't exception be catched and retry the connection?
Also forgot to mention Im running this in an upstart script with the respaw command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants