Menu

#16 Connection after network interruption

open
nobody
None
5
2002-11-05
2002-11-05
Anonymous
No

Ok, I have no logs to detail this as debug on 5 didn't
show any thing except then I started it up and shut it
down.

My bots appear to have problems reconnecting to IRC if
my adsl suffers an interruption.

I've yet to be able to duplicate this problem manualy.
Altho, my manual attempts never achive the one thing
an adsl failure does, a new IP.

Is it possible that an IP change on the interface is
causeing the issue?

Perhaps that combined with the fact that these outages
on average last 10-20 minutes? I've waited for hours for
them to come back, they never do.

Any info I can provide is yours

Shannon

(BTW, my domain is down at the current minute so no
email will get through, I'll come back and check
regualarily till my domain comes back up)

Just found this right before I posted if it helps

Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
Can't connect to Moscow.RU.EU.Undernet.org:6667!
at /usr/lib/perl5/site_perl/5.8.0/Net/IRC.pm line 192
TYPE: disconnect FORMAT: error
FROM: Moscow.RU.EU.Undernet.org
TO:
Arg 0: ERROR :Closing Link: Faithfu1 by
Moscow.RU.EU.Undernet.ORG (dbuf_put fail)

Discussion

  • Andrew Burke

    Andrew Burke - 2002-11-13

    Logged In: YES
    user_id=9937

    I don't know if we can fix this due to the 'new IP' thing.
    As far as I know, Net::IRC binds to a 'localaddr' ip, and if
    that changes out from under it, I don't know how it would
    know to make a new one.

     
  • Jeremy Muhlich

    Jeremy Muhlich - 2002-11-13

    Logged In: YES
    user_id=8699

    Is your perlbot running on the machine with the actual ADSL
    IP, or is it running on a separate box behind a firewall/NAT
    device?

     
  • Shannon Wynter

    Shannon Wynter - 2002-11-13

    Logged In: YES
    user_id=433443

    yes to the actual ip question...

    Perhaps we can log the bound ip and check on disconnect
    for changes, when it changes kill the whole thing and start all
    over again?? (I've done this lots, just using ifconfig for various
    utility scripts)

    on start $boundip = ip
    on disconnect -> check ip, attempt reconnect if not changed,
    else destroy (recreate the bot module)

    my bots should be binding to 0.0.0.0 if thats any help

    Of course, there's probably an easier meathod then killing the
    whole bot and starting it over again, but you get the idea (c:

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.