[issue26858] setting SO_REUSEPORT fails at API 21

2017-12-10 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

This is issue 26855.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails at API 21

2017-12-10 Thread STINNER Victor

STINNER Victor  added the comment:

Do we have a function in Python to get the running Android version?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails at API 21

2017-12-10 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

This problem does not occur at API 24.

--
title: setting SO_REUSEPORT fails -> setting SO_REUSEPORT fails at API 21

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails

2017-10-21 Thread Guido van Rossum

Guido van Rossum  added the comment:

I assume he means that a similar piece of code should be inserted elsewhere. I 
am still waiting for Philip's PR though.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails

2017-10-21 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

Philip, 9791c5d55f52 was commited in november 2013 and issue19901 was closed in 
december 2013, so how can they be an appropriate solution for a problem 
reported on 2017-01-13 in msg285392 ?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails

2017-09-16 Thread Guido van Rossum

Guido van Rossum added the comment:

Can't you just submit a PR? It's so easy now!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails

2017-09-16 Thread Philip Jenvey

Philip Jenvey added the comment:

Note that this isn't an android specific issue: See issue19901, and 
9791c5d55f52 for an appropriate solution patch.

(Renaming title)

--
nosy: +pjenvey
title: android: setting SO_REUSEPORT fails -> setting SO_REUSEPORT fails

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Running the "Search" button on the tracker with "Components" set as 
"Cross-Build" lists 42 issues (20 in the last year).

I guess using this existing category is fine if the titles' issues are prefixed 
with "android:".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-02 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy:  -pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-02 Thread Guido van Rossum

Guido van Rossum added the comment:

If there are a lot of Android issue maybe you could get a tracker manager
to add a new keyword or category or whatever?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-02 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Stefan has already commited and closed some of the issues listed at issue 
#26865. Martin has closed issue #22359, a blocker for the cross-compilation of 
python.

I will enter an issue for all the failures listed at 
https://bitbucket.org/xdegaye/pyona/wiki/testsuite and add them to the list in 
the android meta-issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-02 Thread Guido van Rossum

Guido van Rossum added the comment:

OK, I'll wait until Android support is closer. Do you have a core dev who's 
mentoring/reviewing here?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-02 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The patch was not intended to be proposed as a way to fix this problem, but as 
an indication of what the problem is. This issue is a dependency of issue 
#26865: Meta-issue: support of the android platform.

I should have posted instead the result of running 'python -m test -v 
test_asyncio' on an android emulator running an x86 system image at API level 
21, which is:

==
ERROR: test_create_datagram_endpoint_sockopts 
(test.test_asyncio.test_base_events.BaseEventLoopWithS
electorTests)
--
Traceback (most recent call last):
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_base_events.py",
 line 1506,
 in test_create_datagram_endpoint_sockopts
socket.SOL_SOCKET, socket.SO_REUSEPORT))
OSError: [Errno 92] Protocol not available

==
ERROR: test_create_server_reuse_port 
(test.test_asyncio.test_events.EPollEventLoopTests)
--
Traceback (most recent call last):
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_events.py", 
line 830, in te
st_create_server_reuse_port
socket.SOL_SOCKET, socket.SO_REUSEPORT))
OSError: [Errno 92] Protocol not available

==
ERROR: test_create_server_reuse_port 
(test.test_asyncio.test_events.PollEventLoopTests)
--
Traceback (most recent call last):
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_events.py", 
line 830, in te
st_create_server_reuse_port
socket.SOL_SOCKET, socket.SO_REUSEPORT))
OSError: [Errno 92] Protocol not available

==
ERROR: test_create_server_reuse_port 
(test.test_asyncio.test_events.SelectEventLoopTests)
--
Traceback (most recent call last):
  File 
"/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_asyncio/test_events.py", 
line 830, in te
st_create_server_reuse_port
socket.SOL_SOCKET, socket.SO_REUSEPORT))
OSError: [Errno 92] Protocol not available

--
Ran 991 tests in 16.528s

FAILED (errors=4, skipped=2)
test test_asyncio failed
1 test failed:
test_asyncio
Total duration: 0:00:18

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

> Where is the patch that adds android_ver()?

http://bugs.python.org/issue26855

Xavier de Gaye's implementation is buggy while works for most cases.

--
nosy: +Chi Hsuan Yen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Guido van Rossum

Guido van Rossum added the comment:

Where is the patch that adds android_ver()? At the very least that should be 
listed as a dependency here.

I don't very much like to have changes to asyncio that can only work in Python 
3.6; there's still an upstream version (https://github.com/python/asyncio) that 
is used to do PyPI releases of asyncio for Python 3.3. I try to keep that in 
sync with the stdlib on all platforms, otherwise figuring out whether any 
changes need to be packported is a nightmare.

You might also update the comment somewhere that currently states that 
reuse_port is not supported on Windows.

PS. It amuses me that each platform apparently has a different way to check 
(there are three different types of platform checks in the lines you change).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-04-26 Thread Roman Evstifeev

Changes by Roman Evstifeev :


--
nosy: +Roman.Evstifeev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26858] setting SO_REUSEPORT fails on android

2016-04-26 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Android defines SO_REUSEPORT on android API 21 but setting this option in the 
asyncio tests raises OSError: [Errno 92] Protocol not available.

The attached patch assumes there is a platform.android_ver() function to detect 
that this is the android platform.  The patch does not take into account the 
fact that this may be fixed in future versions of android.

--
components: Cross-Build
files: test.asyncio.patch
keywords: patch
messages: 264281
nosy: Alex.Willmer, xdegaye
priority: normal
severity: normal
status: open
title: setting SO_REUSEPORT fails on android
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42610/test.asyncio.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com