Issue2520

classification
Title: Jython does NOT support socket.listen(0) for accepting only one connection
Type: Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: zyasoft
Priority: normal Keywords:

Created on 2016-09-06.21:30:13 by zyasoft, last changed 2018-03-24.07:42:01 by jeff.allen.

Messages
msg10943 (view) Author: Jim Baker (zyasoft) Date: 2016-09-06.21:30:13
See related http://bugs.python.org/issue8498, which was fixed in 2010.

This impacts the tests used by the latest version of requests. The relevant code in tests/testserver/server.py in the Server class:

    def _create_socket_and_bind(self):
        sock = socket.socket()
        sock.bind((self.host, self.port))
        sock.listen(0)
        return sock

I believe this only impacts test usage - you really only want your server to just accept just *one* connection?!! - so it's an unfortunate annoyance that shouldn't slip 2.7.1. The requests package itself seems to continue to work fine, at least as use by pip.
History
Date User Action Args
2018-03-24 07:42:01jeff.allensetmilestone: Jython 2.7.2 ->
2017-06-23 16:54:39zyasoftsetpriority: normal
2016-09-19 04:33:37zyasoftsettitle: Jython does support socket.listen(0) for accepting only one connection -> Jython does NOT support socket.listen(0) for accepting only one connection
2016-09-06 21:30:13zyasoftcreate