Ticket #4361: patch

File patch, 692 bytes (added by Szumo, 5 years ago)

Patch to internet/posixbase.py

  • posixbase.

    old new  
    7070        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
    7171        client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
    7272        client.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 
    73         server.bind(('127.0.0.1', 0)) 
     73        address = '127.0.0.1' 
     74        server.bind((address, 0)) 
    7475        server.listen(1) 
    75         client.connect(server.getsockname()) 
     76        port = server.getsockname()[1] 
     77        client.connect((address, port)) 
    7678        reader, clientaddr = server.accept() 
    7779        client.setblocking(0) 
    7880        reader.setblocking(0)