#2038: Chrome 17 disconnecting from webui
-------------------+--------------------------------------------------------
 Reporter:  Cas    |       Owner:  damoxc
     Type:  bug    |      Status:  new   
 Priority:  major  |   Milestone:  1.3.4 
Component:  webui  |     Version:  1.3.3 
 Keywords:         |  
-------------------+--------------------------------------------------------
 A recent update to Chrome 17 has caused the webui to timeout after several
 minutes. From what I can tell the problem is actually a bug in deluge
 where a json request 'web.get_events' never gets a response.

 I don't fully understand this part of the code but my testing has found
 that returning a callback of None instead of continuing seems to keep
 Chrome connection alive and has no effect on receiving future plugin
 enabled events.

 {{{
 diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py
 index 4bbcf9a..cb5e8fc 100644
 --- a/deluge/ui/web/json_api.py
 +++ b/deluge/ui/web/json_api.py
 @@ -400,7 +400,8 @@ def _get_events(self, listener_id, count, d):
              if count >= 3000:
                  d.callback(None)
              else:
 -                reactor.callLater(0.1, self._get_events, listener_id,
 count + 1, d)
 +                d.callback(None)
 +                #reactor.callLater(0.1, self._get_events, listener_id,
 count + 1, d)

      def remove_listener(self, listener_id, event):
          """
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2038>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to