[issue10115] accept4 can fail with errno 90
Martin v. Löwis
report at bugs.python.org
Sun Oct 17 20:25:00 CEST 2010
Martin v. Löwis <martin at v.loewis.de> added the comment:
> That's another possibility, in which case we would first remove the
> current accept4-calling code in order to fix the buildbot failure.
In Python, the lowest layer facing the operating system always directly
exposes the API as-is, without reinterpreting the user's request. Not
following this principle leads exactly to this kind of problem.
So I think .accept() should only call accept(2), and accept4() should
only be called if explicitly requested by the application.
Exposing it as .accept4(flags) is certainly the most straight-forward
way of doing it, but I could also live with .accept(flags) (i.e.
call accept4 if flags are being passed, hoping that no other system
comes up with another accept extension that has a different integer
argument).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10115>
_______________________________________
More information about the Python-bugs-list
mailing list