SmartIrc4net icon indicating copy to clipboard operation
SmartIrc4net copied to clipboard

Auto retry never happens if exception is thrown

Open xPaw opened this issue 11 years ago • 4 comments

Exception: Could not connect to: kornbluth.freenode.net:8000 Connection refused
  at Meebey.SmartIrc4net.IrcConnection.Connect (System.String[] addresslist, Int32 port) [0x00000] in <filename unknown>:0
  at Meebey.SmartIrc4net.IrcClient.Connect (System.String[] addresslist, Int32 port) [0x00000] in <filename unknown>:0

This happened, and it never connected to any other server in the list.

xPaw avatar Dec 26 '13 10:12 xPaw

I guess it happened here: https://github.com/meebey/SmartIrc4net/blob/master/src/IrcConnection/IrcConnection.cs#L738

Which is a weird thing to do because there are plenty of servers in supplied server list which work.

xPaw avatar Dec 26 '13 10:12 xPaw

I don't think it is line 738 because CouldNotConnectException is only thrown in the AuthenticationException block which only happens on SSL issue. Your message indicates a simple connection refused issue though. Are you sure you have enabled AutoRetry and AutoRetryLimit has at least the size of your supplied server list (the default is 3).

meebey avatar Dec 26 '13 10:12 meebey

Yep, autoretry is enabled with limit set to 0.

xPaw avatar Dec 26 '13 10:12 xPaw

Please use a debug build then (which enables logging) and initialize the logger like this:https://github.com/meebey/smuxi/blob/0ebb3a385336867ddc8c685a4121553049c9218a/lib/win32/smuxi-frontend-gnome.exe.config with your application's .exe.config

meebey avatar Dec 26 '13 10:12 meebey