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

Auto retry never happens if exception is thrown #17

Open
xPaw opened this Issue Dec 26, 2013 · 4 comments

Comments

Projects
None yet
2 participants
@xPaw

xPaw commented Dec 26, 2013

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

This comment has been minimized.

Show comment
Hide comment
@xPaw

xPaw Dec 26, 2013

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 commented Dec 26, 2013

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.

@meebey

This comment has been minimized.

Show comment
Hide comment
@meebey

meebey Dec 26, 2013

Owner

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).

Owner

meebey commented Dec 26, 2013

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).

@xPaw

This comment has been minimized.

Show comment
Hide comment
@xPaw

xPaw Dec 26, 2013

Yep, autoretry is enabled with limit set to 0.

xPaw commented Dec 26, 2013

Yep, autoretry is enabled with limit set to 0.

@meebey

This comment has been minimized.

Show comment
Hide comment
@meebey

meebey Dec 26, 2013

Owner

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

Owner

meebey commented Dec 26, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment