• Marius Wachtler's avatar
    socket: workaround socket close problem · e46c0597
    Marius Wachtler authored
    The socket implementation used to only call close on a socket when all references where gone.
    This works fine for cpython which uses reference counting but for pyston (and pypy) this is a problem.
    This works around the problem in a similar way as pypy does.
    It also uses the same method names so that 3th party libs which already support pypy will automatically work with pyston too.
    (e.g. urllib3)
    e46c0597