*sasl SHOULDN'T timeout when requireauth is no #535

Open
opened 2026-10-05 04:28:23 +02:00 by adam · 7 comments
Owner

I have requireauth as no, because I think it's more important for me to see the discussions that happen on the network than to be identified with SASL.

Today ChatSpike seems to be broken again and I was getting registration timeouts because of *sasl which I believe should only abort connecting if requireauth is yes.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23355073-sasl-shouldn-t-timeout-when-requireauth-is-no?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).
I have requireauth as no, because I think it's more important for me to see the discussions that happen on the network than to be identified with SASL. Today ChatSpike seems to be broken again and I was getting registration timeouts because of *sasl which I believe should only abort connecting if requireauth is yes. ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23355073-sasl-shouldn-t-timeout-when-requireauth-is-no?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:91992177 -->
Author
Owner

The AUTHENTICATE command MUST be used before registration is complete and with the sasl capability enabled. To enforce the former, it is RECOMMENDED to only send CAP END when the SASL exchange is completed or needs to be aborted. Clients SHOULD be prepared for timeouts at all times during the SASL authentication.

From http://ircv3.net/specs/extensions/sasl-3.1.html, the first chapter of The AUTHENTICATE command.

> The AUTHENTICATE command MUST be used before registration is complete and with the sasl capability enabled. To enforce the former, it is RECOMMENDED to only send CAP END when the SASL exchange is completed or needs to be aborted. _Clients SHOULD be prepared for timeouts at all times during the SASL authentication._ From http://ircv3.net/specs/extensions/sasl-3.1.html, the first chapter of _The AUTHENTICATE command_. <!-- github-comment-id:122229588 -->
Author
Owner

I've stumbled upon this problem too. This network I'm on is doing some maintenance as we speak, and in result of this the services server is down, so there's currently no SASL authentication possible. This is causing ZNC to fail to connect repeatedly while it should just succeed.

I've stumbled upon this problem too. This network I'm on is doing some maintenance as we speak, and in result of this the services server is down, so there's currently no SASL authentication possible. This is causing ZNC to fail to connect repeatedly while it should just succeed. <!-- github-comment-id:140114370 -->
Author
Owner

It seems that it's easier to just keep *sasl unloaded on ChatSpike (which is the only network where I see this) until this is fixed.

They don't have vhosts so there is no fear of being joined to channel before it activates and I identify with *cert which is still the best way until SASL REAUTH (https://github.com/znc/znc/issues/949) becomes more widely used. They also have NickServ module (ajoin) to join me to channels on connect so being unable to join channels isn't an issue either.

It seems that it's easier to just keep *sasl unloaded on ChatSpike (which is the only network where I see this) until this is fixed. They don't have vhosts so there is no fear of being joined to channel before it activates and I identify with *cert which is still the best way until SASL REAUTH (https://github.com/znc/znc/issues/949) becomes more widely used. They also have NickServ module (ajoin) to join me to channels on connect so being unable to join channels isn't an issue either. <!-- github-comment-id:149642472 -->
Author
Owner

It looks like things went a bit bada-boom. Services are unavailable whilst we figure out what happened... pic.twitter.com/Rjbu9IEZfv

— freenode staff (@freenodestaff) 2. joulukuuta 2015
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

And this bug hit me in combination to that and I seriously doubt that I am the only one who suffered it.

2015-12-02 18:39:19+0200 < *status> You quit [Ping timeout: 260 seconds]
2015-12-02 18:39:19+0200 < *status> Error from Server [Closing Link: unaffiliated/mikaela (Ping timeout: 260 seconds)]
2015-12-02 18:39:19+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:39:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:40:18+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:40:18+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:40:18+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:40:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:40:59+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:40:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:41:35+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:41:35+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:41:35+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:42:11+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:42:11+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:42:11+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:42:47+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:42:47+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:42:47+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:43:34+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:43:34+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:43:34+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:44:35+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:44:35+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:44:35+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:45:26+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:45:26+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:45:26+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:46:22+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:46:22+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:46:22+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:46:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:46:59+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:46:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:48:44+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:48:44+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:48:44+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:49:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:49:23+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:49:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:50:06+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:50:06+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:50:06+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:51:02+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:51:02+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:51:02+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:51:58+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:51:58+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:51:58+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:52:54+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:52:54+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:52:54+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:53:50+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:53:50+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:53:50+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:54:46+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:54:46+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:54:46+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:55:42+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:55:42+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:55:42+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:56:38+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:56:38+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:56:38+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:57:34+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:57:34+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:57:34+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:58:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 18:58:23+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:58:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 18:59:26+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 18:59:26+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 18:59:26+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:00:22+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 19:00:22+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:00:22+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:01:18+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 19:01:18+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:01:18+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:01:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 19:01:59+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:01:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:02:42+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 19:02:42+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:02:42+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:03:38+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 19:03:38+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:03:38+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:04:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 19:02:42+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:02:42+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:03:38+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)]
2015-12-02 19:03:38+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:03:38+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:04:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 19:04:23+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:04:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:04:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)]
2015-12-02 19:04:59+0200 < *status> Disconnected from IRC. Reconnecting...
2015-12-02 19:04:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...
2015-12-02 19:05:23+0200 < *status> Connected!
<blockquote class="twitter-tweet" lang="fi"><p lang="en" dir="ltr">It looks like things went a bit bada-boom. Services are unavailable whilst we figure out what happened... <a href="https://t.co/Rjbu9IEZfv">pic.twitter.com/Rjbu9IEZfv</a></p>&mdash; freenode staff (@freenodestaff) <a href="https://twitter.com/freenodestaff/status/672082158060720128">2. joulukuuta 2015</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> And this bug hit me in combination to that and I seriously doubt that I am the only one who suffered it. ``` 2015-12-02 18:39:19+0200 < *status> You quit [Ping timeout: 260 seconds] 2015-12-02 18:39:19+0200 < *status> Error from Server [Closing Link: unaffiliated/mikaela (Ping timeout: 260 seconds)] 2015-12-02 18:39:19+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:39:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:40:18+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:40:18+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:40:18+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:40:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:40:59+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:40:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:41:35+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:41:35+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:41:35+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:42:11+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:42:11+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:42:11+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:42:47+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:42:47+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:42:47+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:43:34+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:43:34+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:43:34+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:44:35+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:44:35+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:44:35+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:45:26+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:45:26+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:45:26+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:46:22+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:46:22+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:46:22+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:46:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:46:59+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:46:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:48:44+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:48:44+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:48:44+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:49:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:49:23+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:49:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:50:06+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:50:06+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:50:06+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:51:02+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:51:02+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:51:02+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:51:58+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:51:58+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:51:58+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:52:54+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:52:54+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:52:54+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:53:50+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:53:50+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:53:50+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:54:46+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:54:46+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:54:46+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:55:42+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:55:42+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:55:42+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:56:38+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:56:38+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:56:38+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:57:34+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:57:34+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:57:34+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:58:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 18:58:23+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:58:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 18:59:26+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 18:59:26+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 18:59:26+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:00:22+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 19:00:22+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:00:22+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:01:18+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 19:01:18+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:01:18+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:01:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 19:01:59+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:01:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:02:42+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 19:02:42+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:02:42+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:03:38+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 19:03:38+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:03:38+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:04:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 19:02:42+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:02:42+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:03:38+0200 < *status> Error from Server [Closing Link: kapsi.fi (Connection timed out)] 2015-12-02 19:03:38+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:03:38+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:04:23+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 19:04:23+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:04:23+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:04:59+0200 < *status> Error from Server [Closing Link: Ace-of-Diamonds.GirlsLikeUs.mikaela.info (Connection timed out)] 2015-12-02 19:04:59+0200 < *status> Disconnected from IRC. Reconnecting... 2015-12-02 19:04:59+0200 < *status> Disconnected from IRC (Can't resolve server hostname). Reconnecting... 2015-12-02 19:05:23+0200 < *status> Connected! ``` <!-- github-comment-id:161377117 -->
Author
Owner
2015-12-02 19:05:58+0200 -- Channel #ircv3: 125 nicks (1 op, 0 voices, 124 normals)
2015-12-02 19:06:52+0200 -- Channel created on 2011-01-26 23:05:35+0200
2015-12-02 19:45:15+0200 < Mikaela> ZNC being idiot with SASL probably isn't reason enough to change wording in SASL spec to require timeout unless the user wants to not connect to network without being identified? https://github.com/znc/znc/issues/984
2015-12-02 19:47:23+0200 < dx> uhhh what
2015-12-02 19:47:50+0200 < Mikaela> the last comment, all registration timeouts were caused by the SASL module
2015-12-02 19:48:09+0200 < dx> how do you know that?
2015-12-02 19:48:54+0200 < Mikaela> by having the knowledge that ZNC has this bug and that freenode services went down and having the exact same error on ChatSpike and it getting fixed by following advice by DarthGandalf and temporarily unloading *SASL
2015-12-02 19:49:55+0200 < dx> okay
2015-12-02 19:50:09+0200 < dx> because that log is rather opaque
2015-12-02 19:50:44+0200 < dx> anyway your issue seems straightforward, znc not honoring its own setting to not require auth                                                   
2015-12-02 19:51:09+0200 < dx> ("straightforward", i say, after rereading the same thing ten times)
2015-12-02 19:53:50+0200 < dx> might help to change the subject to say "sasl *shouldn't* timeout when requireauth is no"
2015-12-02 19:54:39+0200 < Mikaela> ok
2015-12-02 19:54:39+0200 < Mikaela> may I paste this discussion to it as from you I realize that the issue is not as detailed or explain enough?                               
2015-12-02 19:54:41+0200 < dx> ..although the timeout comes from the server, not from znc, so maybe it should timeout
2015-12-02 19:54:54+0200 < dx> yeah sure.
``` 2015-12-02 19:05:58+0200 -- Channel #ircv3: 125 nicks (1 op, 0 voices, 124 normals) 2015-12-02 19:06:52+0200 -- Channel created on 2011-01-26 23:05:35+0200 2015-12-02 19:45:15+0200 < Mikaela> ZNC being idiot with SASL probably isn't reason enough to change wording in SASL spec to require timeout unless the user wants to not connect to network without being identified? https://github.com/znc/znc/issues/984 2015-12-02 19:47:23+0200 < dx> uhhh what 2015-12-02 19:47:50+0200 < Mikaela> the last comment, all registration timeouts were caused by the SASL module 2015-12-02 19:48:09+0200 < dx> how do you know that? 2015-12-02 19:48:54+0200 < Mikaela> by having the knowledge that ZNC has this bug and that freenode services went down and having the exact same error on ChatSpike and it getting fixed by following advice by DarthGandalf and temporarily unloading *SASL 2015-12-02 19:49:55+0200 < dx> okay 2015-12-02 19:50:09+0200 < dx> because that log is rather opaque 2015-12-02 19:50:44+0200 < dx> anyway your issue seems straightforward, znc not honoring its own setting to not require auth 2015-12-02 19:51:09+0200 < dx> ("straightforward", i say, after rereading the same thing ten times) 2015-12-02 19:53:50+0200 < dx> might help to change the subject to say "sasl *shouldn't* timeout when requireauth is no" 2015-12-02 19:54:39+0200 < Mikaela> ok 2015-12-02 19:54:39+0200 < Mikaela> may I paste this discussion to it as from you I realize that the issue is not as detailed or explain enough? 2015-12-02 19:54:41+0200 < dx> ..although the timeout comes from the server, not from znc, so maybe it should timeout 2015-12-02 19:54:54+0200 < dx> yeah sure. ``` <!-- github-comment-id:161380442 -->
Author
Owner

Just a quick note what the RequireAuth setting does: If it is true, ZNC disconnects when it managed to connect to the IRCd without a successfull authentication (or if authentication failed).

So what you are really asking for in this bug: A timeout mechanism should be added to the SASL module where, after a certain time, it aborts the authentication attempt (send AUTHENTICATE *, according to the SASL spec) and continue capability negotiation (ResumeCap()).

If the server has internal problems, perhaps the bug is also that the IRCd doesn't have any timeouts for authentication?

Just a quick note what the `RequireAuth` setting does: If it is true, ZNC disconnects when it managed to connect to the IRCd without a successfull authentication (or if authentication failed). So what you are really asking for in this bug: A timeout mechanism should be added to the SASL module where, after a certain time, it aborts the authentication attempt (send `AUTHENTICATE *`, according to the SASL spec) and continue capability negotiation (`ResumeCap()`). If the server has internal problems, perhaps the bug is also that the IRCd doesn't have any timeouts for authentication? <!-- github-comment-id:161382526 -->
Author
Owner

< dx> ..although the timeout comes from the server, not from znc, so maybe it should timeout

What I meant to say there is that the issue can be interpreted both ways:

  • A server connection timeout shouldn't happen (as in, should be avoided)
  • A sasl authentication timeout on ZNC's side should happen before the server one, to avoid losing the connection.

I sort-of-confused myself with both meanings of timeout.

If the server has internal problems, perhaps the bug is also that the IRCd doesn't have any timeouts for authentication?

Possibly true, but this behavior is also allowed by the sasl-3.1 spec. The client should have its own timeout like you mentioned.

> < dx> ..although the timeout comes from the server, not from znc, so maybe it should timeout What I meant to say there is that the issue can be interpreted both ways: - A server connection timeout shouldn't happen (as in, should be avoided) - A sasl authentication timeout on ZNC's side should happen before the server one, to avoid losing the connection. I sort-of-confused myself with both meanings of timeout. > If the server has internal problems, perhaps the bug is also that the IRCd doesn't have any timeouts for authentication? Possibly true, but this behavior is also allowed by the sasl-3.1 spec. The client should have its own timeout like you mentioned. <!-- github-comment-id:161385341 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#535