View Issue Details

IDProjectCategoryView StatusLast Update
0001321unrealircdpublic2003-11-20 19:43
ReporterRocko Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.2-beta18 
Summary0001321: Bug in link::options::autoconnect, only restart helps.
DescriptionFirst.. I am not sure, if it is a known problem, and it is an old "bug" if it is one, but I never posted it, because I thought, you know that already.

When starting a Server, without any autoconnect options in the config, and you put it later in the config, and rehash, you will notice, the server won't autoconnect to the specified server.

The same problem, when you start the server with an autoconnect option in the link block, remove it, rehash, put it in, and rehash again. The Server won't connect to the Hub/other Server for which the autoconnect flag is set. In stats c, the "a" flag is listed.

Tested from compiled leaf, autoconnect to hub, with ssl.

Only a restart helps then. Thats very bad, because when you remove the autoconnect flag, because the other server is down for a day, and add it then again, it won't work.
3rd party modules

Activities

syzop

2003-11-03 00:07

administrator   ~0003934

Someone thought this was smart...
/*
 * ** We only want to connect if a connection is due,
 * ** not every time through. Note, if there are no
 * ** active C lines, this call to Tryconnections is
 * ** made once only; it will return 0. - avalon
 */
if (nextconnect && timeofday >= nextconnect)
    nextconnect = try_connections(timeofday);

of course if there are no autoconnects it will set it to 0 and then NEVER call it again, fun..

Fixed in .1971.

On a sidenote, I was unaware of this bug (or maybe I was but I no longer remember then), so thanks for the report... I can see how this bug confuses people :p.

Issue History

Date Modified Username Field Change
2003-10-27 13:46 Rocko New Issue
2003-11-03 00:07 syzop Note Added: 0003934
2003-11-03 00:07 syzop Status new => resolved
2003-11-03 00:07 syzop Resolution open => fixed
2003-11-03 00:07 syzop Assigned To => syzop
2003-11-20 19:43 syzop Status resolved => closed