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

Changeset 98693 in webkit


Ignore:
Timestamp:
Oct 27, 2011, 10:39:13 PM (15 years ago)
Author:
yutak@chromium.org
Message:

WebSocket: Connecting to localhost:8880 takes one second on Windows
https://bugs.webkit.org/show_bug.cgi?id=64788

Reviewed by Dirk Pranke.

  • Scripts/webkitpy/layout_tests/servers/websocket_server.py:

Bind to "localhost" instead of "127.0.0.1" to let pywebsocket listen on both
IPv4 and IPv6 addresses. This should prevent the test reserved-opcodes.html
from timing out on Windows, because this test tries to open a lot of
connections to localhost and each attempt takes one second to fall back from
IPv6 to IPv4 on Windows (I have no idea why Windows works like this, though).

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r98687 r98693  
     12011-10-27  Yuta Kitamura  <yutak@chromium.org>
     2
     3        WebSocket: Connecting to localhost:8880 takes one second on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=64788
     5
     6        Reviewed by Dirk Pranke.
     7
     8        * Scripts/webkitpy/layout_tests/servers/websocket_server.py:
     9        Bind to "localhost" instead of "127.0.0.1" to let pywebsocket listen on both
     10        IPv4 and IPv6 addresses. This should prevent the test reserved-opcodes.html
     11        from timing out on Windows, because this test tries to open a lot of
     12        connections to localhost and each attempt takes one second to fall back from
     13        IPv6 to IPv4 on Windows (I have no idea why Windows works like this, though).
     14
    1152011-10-27  Adam Barth  <abarth@webkit.org>
    216
  • trunk/Tools/Scripts/webkitpy/layout_tests/servers/websocket_server.py

    r98068 r98693  
    118118        start_cmd = [
    119119            python_interp, '-u', pywebsocket_script,
    120             '--server-host', '127.0.0.1',
     120            '--server-host', 'localhost',
    121121            '--port', str(self._port),
    122122            # FIXME: Don't we have a self._port_obj.layout_test_path?
Note: See TracChangeset for help on using the changeset viewer.