Bug #670
Slow when closing server or entire program
Status: | Closed | Start: | 01/04/2012 | |
Priority: | Urgent | Due date: | ||
Assigned to: | Mirco Bauer | % Done: | 100% |
|
Category: | Frontend GNOME | |||
Target version: | 0.8.9.2 | |||
Complexity: | Found in Version: | 0.8.9 |
||
Votes: | 1 (View) |
Description
Sometimes when closing a server, the program takes a long time (10-15 sec?) to close the connection.
Sometimes when closing the entire program (with servers open), the program takes a long time to close.
The windows warning window pops up and tell you that the progra isn't responding (but is eventually closed).
I didn't notice this with the older version, but noticed it on first use with new version (0.8.9-1).
Running Windows 7 x64.
Associated revisions
Revision b69a5f0dc83e226c474444852932877dfc5c26a6
[Frontend-GNOME] Dispose protocol managers without disconnect on quit (closes: #670)
History
Updated by Mirco Bauer 4731 days ago
- Category set to Frontend GNOME
- Assigned to set to Mirco Bauer
- Priority changed from Normal to Urgent
- Target version set to 0.8.10
- Found in Version set to 0.8.9
Updated by Patrick M 4731 days ago
I encountered the same problem while implementing your IRC Library in to a private project and as far as I can determine it has to do with the Disconnection function in smartirc4net. As the latest release of Smuxi modified the shutdown mechanics, this explains the behavioral change and the absense of the problems in earlier releases.
I have uploaded a debuglog (http://pastebin.com/Y4DzX4Ng) which shows a 40 second timeout after the Disconnect() function is called.
A possible solution might be using the Thread.Abort() function instead of Thread.Stop() in smartirc4net, additionally moving the process to a background-thread also solves said problem.
Updated by Mirco Bauer 4726 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset b69a5f0dc83e226c474444852932877dfc5c26a6.
Updated by Mirco Bauer 4717 days ago
- Target version changed from 0.8.10 to 0.8.9.2
Updated by Mirco Bauer 4711 days ago
This change can be tested with a development build which can be obtained from here: http://www.smuxi.org/documentation/running-from-git/