Bug #670

avatar

Slow when closing server or entire program

Added by norsk gutt 4705 days ago. Updated 4681 days ago.

Status:Closed Start:01/04/2012
Priority:Urgent Due date:
Assigned to:avatarMirco 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
Added by Mirco Bauer 4696 days ago

[Frontend-GNOME] Dispose protocol managers without disconnect on quit (closes: #670)

History

Updated by Mirco Bauer 4700 days ago

avatar
  • 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 4700 days ago

avatar

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 4695 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Updated by Mirco Bauer 4687 days ago

avatar
  • Target version changed from 0.8.10 to 0.8.9.2

Updated by Mirco Bauer 4681 days ago

avatar

This change can be tested with a development build which can be obtained from here: http://www.smuxi.org/documentation/running-from-git/

Also available in: Atom PDF