⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 126905 in webkit


Ignore:
Timestamp:
Aug 28, 2012, 11:36:38 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[webkit-patch] gets stuck into an infinite loop if bugzilla doesn't respond in time.
https://bugs.webkit.org/show_bug.cgi?id=94700

Patch by Szilard Ledan <Szilárd LEDÁN> on 2012-08-28
Reviewed by Eric Seidel.

Interrupting download with a timeout would be a possible solution.
I imported the socket module and used the setdefaulttimeout() method.
Fixing it is important, because EWS bots need to be restarted regularly
because of this bug.

  • Scripts/webkitpy/common/net/bugzilla/bugzilla.py:

(Bugzilla._get_browser):
(Bugzilla.setdefaulttimeout):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r126876 r126905  
     12012-08-28  Szilard Ledan  <szledan@inf.u-szeged.hu>
     2
     3        [webkit-patch] gets stuck into an infinite loop if bugzilla doesn't respond in time.
     4        https://bugs.webkit.org/show_bug.cgi?id=94700
     5
     6        Reviewed by Eric Seidel.
     7
     8        Interrupting download with a timeout would be a possible solution.
     9        I imported the socket module and used the setdefaulttimeout() method.
     10        Fixing it is important, because EWS bots need to be restarted regularly
     11        because of this bug.
     12
     13        * Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
     14        (Bugzilla._get_browser):
     15        (Bugzilla.setdefaulttimeout):
     16
    1172012-08-28  Gabor Rapcsanyi  <rgabor@webkit.org>
    218
  • trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py

    r125123 r126905  
    3434import re
    3535import StringIO
     36import socket
    3637import urllib
    3738
     
    280281    def _get_browser(self):
    281282        if not self._browser:
     283            self.setdefaulttimeout(600)
    282284            from webkitpy.thirdparty.autoinstalled.mechanize import Browser
    283285            self._browser = Browser()
     
    290292
    291293    browser = property(_get_browser, _set_browser)
     294
     295    def setdefaulttimeout(self, value):
     296        socket.setdefaulttimeout(value)
    292297
    293298    def fetch_user(self, user_id):
Note: See TracChangeset for help on using the changeset viewer.