Skip to content

Commit 7d74d65

Browse files
committed
Fix support for Python 2.5 on Windows.
With Python 2.5 setting socket timeout on Windows caused all connections to fail. On Linux Ctrl-C seems to work also without it so no need to set it at all with Python. With Jython 2.5 setting socket timeout allows Ctrl-C to work and is thus needed regardless the OS.
1 parent d776f92 commit 7d74d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robotremoteserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _announce_start(self, port_file=None):
8282
def serve_forever(self):
8383
if hasattr(self, 'timeout'):
8484
self.timeout = 0.5
85-
else:
85+
elif sys.platform.startswith('java'):
8686
self.socket.settimeout(0.5)
8787
while not self._shutdown:
8888
try:

0 commit comments

Comments
 (0)