xpra icon
Bug tracker and wiki

Ticket #2936: socket_util.py.patch

File socket_util.py.patch, 825 bytes (added by brief, 2 months ago)

also found a whitespace :)

  • src/xpra/net/socket_util.py

     
    88from time import sleep
    99from ctypes import Structure, c_uint8, sizeof
    1010
    11 from xpra.scripts.config import InitException, TRUE_OPTIONS
    12 from xpra.scripts.main import InitExit
     11from xpra.scripts.config import InitException, TRUE_OPTIONS, InitExit
    1312from xpra.exit_codes import (
    1413    EXIT_SSL_FAILURE, EXIT_SSL_CERTIFICATE_VERIFY_FAILURE,
    1514    EXIT_SERVER_ALREADY_EXISTS, EXIT_SOCKET_CREATION_ERROR,
     
    208207    return peek_data
    209208
    210209
    211 POSIX_TCP_INFO = ( 
     210POSIX_TCP_INFO = (
    212211        ("state",           c_uint8),
    213212        )
    214213def get_sockopt_tcp_info(sock, TCP_INFO, attributes=POSIX_TCP_INFO):