[issue25680] Selector.select() hangs when there is nothing to select

2020-04-15 Thread Guido van Rossum
Guido van Rossum added the comment: How ironic, the other issue had to be closed manually. :-) Reopening this one. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-15 Thread Russell Davis
Russell Davis added the comment: I think this got auto-closed due to a link in the PR. Note that, per https://github.com/python/cpython/pull/19508#issuecomment-613317021, the behavior is still inconsistent on windows. I think the solution there will have to be a call to sleep() when the list

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-15 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset ba1bcffe5cafc1bb0ac6fdf9ecef51e75e342707 by Russell Davis in branch 'master': bpo-29255: Wait in KqueueSelector.select when no fds are registered (GH-19508) https://github.com/python/cpython/commit/ba1bcffe5cafc1bb0ac6fdf9ecef51e75e342707 --

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-15 Thread Russell Davis
Russell Davis added the comment: @gvanrossum PR is ready for review: https://github.com/python/cpython/pull/19508 -- ___ Python tracker ___ ___

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-14 Thread Russell Davis
Change by Russell Davis : -- keywords: +patch pull_requests: +18861 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19508 ___ Python tracker ___ __

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: That may well be correct. Do you want to submit a PR to fix it? -- ___ Python tracker ___ ___ P

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-10 Thread Russell Davis
Russell Davis added the comment: Looks like this is caused by #29255 -- nosy: +russelldavis ___ Python tracker ___ ___ Python-bugs-

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-22 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think we should "fix" the select module; it's advertised as a wrapper around the various syscalls, and if the platforms disagree on what that syscall (e.g. select()) does we shouldn't try to fix it. (Documenting the differences is fine.) However the

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-22 Thread Aleksey Kladov
Aleksey Kladov added the comment: >I disagree, we can do better than documenting "bugs" :-) The result of `select.select([], [], [], None)` should defintelly be documented. Three platoforms made three different decisions in similar situation, so any behavior is reasonable and it should be ma

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-22 Thread STINNER Victor
STINNER Victor added the comment: Aleksey Kladov: "To show surprising platform-dependent API behavior." Hum ok, it makes sense :-) I agree that it would be better to have a portable behaviour in the selectors module which is supposed to be an abstraction providing a portable behaviour. We alre

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-21 Thread Martin Panter
Martin Panter added the comment: I would expect it to hang (until the timeout expired) of no files are added. If it returns an empty list, that should mean the timeout expired. I guess Mac uses KqueueSelector. I would certainly expect SelectSelector to hang. Maybe the underlying kqueue impleme

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-21 Thread Aleksey Kladov
Aleksey Kladov added the comment: >What's the point of your bug report? To show surprising platform-dependent API behavior. I don't know what is the correct behavior here, but it should be cross platform. Seems like the most sane option is to throw an exception. >Does your application reall

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-20 Thread STINNER Victor
STINNER Victor added the comment: Your code doesn't make sense. You listen to 0 file descriptor and wait forever until you get events, which will never occur. I'm not even sure that it should be allowed by the Selector API. What's the point of your bug report? Does your application really rely

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-20 Thread Aleksey Kladov
New submission from Aleksey Kladov: The following hangs on Linux ```Python >>> import selectors >>> s = selectors.DefaultSelector() >>> s.select() ``` On Mac it returns an empty list. -- messages: 254975 nosy: Aleksey Kladov priority: normal severity: normal status: open title: Selecto