[issue16679] Add advice about non-ASCII wsgiref PATH_INFO
Alexey Gorshkov added the comment: I'm from Issue 26808. I'd like to see some explanation on: how about QUERY_STRING value? Why only PATH_INFO is encoded in such a manner, but QUERY_STRING is passed without any changes and does not requires any latin-1 to utf-8 recodings? -- nosy: +animus ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16679> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26808] wsgiref.simple_server breaks unicode in URIs
Alexey Gorshkov added the comment: also attaching same print output in console -- Added file: http://bugs.python.org/file42535/Screenshot from 2016-04-20 14-28-03.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26808> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26808] wsgiref.simple_server breaks unicode in URIs
Alexey Gorshkov added the comment: take a look at 'pi:' result, please. - attaching screenshot -- Added file: http://bugs.python.org/file42534/Screenshot from 2016-04-20 14-26-03.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26808> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26808] wsgiref.simple_server breaks unicode in URIs
Changes by Alexey Gorshkov <ani...@wayround.org>: Added file: http://bugs.python.org/file42533/t.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26808> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26808] wsgiref.simple_server breaks unicode in URIs
Changes by Alexey Gorshkov <ani...@wayround.org>: Removed file: http://bugs.python.org/file42532/t.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26808> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26808] wsgiref.simple_server breaks unicode in URIs
New submission from Alexey Gorshkov: example code is in attachment example URI is (for example): http://127.0.0.1:8005/ัะตัั -- components: Extension Modules files: t.py messages: 263819 nosy: animus priority: normal severity: normal status: open title: wsgiref.simple_server breaks unicode in URIs type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file42532/t.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26808> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0
Alexey Gorshkov added the comment: telnet 127.0.0.1 9000 can be used as testing client -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25471> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0
Changes by Alexey Gorshkov <ani...@wayround.org>: Removed file: http://bugs.python.org/file40855/s1.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25471> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0
Changes by Alexey Gorshkov <ani...@wayround.org>: Added file: http://bugs.python.org/file40856/s1.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25471> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25473] socket.recv() raises correct code with the misleading description 'BlockingIOError: [Errno 11] Resource temporarily unavailable'
New submission from Alexey Gorshkov: (in continuation to bug https://bugs.python.org/issue25471 ) socket.recv() raises 'BlockingIOError: [Errno 11] Resource temporarily unavailable' in case, if setblocking(False) on socket returned by non-blocking socket's .accept() method and client does not sending data and didn't disconnected yet. Not sure if I'm correct, but reading glibc doc on recv(), I think raised exception should be corrected: while code 11 correctly corresponds to EWOULDBLOCK, the misleading description 'Resource temporarily unavailable', probably, should be changed: --- 'EWOULDBLOCK' Nonblocking mode has been set on the socket, and the read operation would block. (Normally, 'recv' blocks until there is input available to be read.) --- attached file with testing server corrected for this issue -- files: s1.py messages: 253425 nosy: animus priority: normal severity: normal status: open title: socket.recv() raises correct code with the misleading description 'BlockingIOError: [Errno 11] Resource temporarily unavailable' versions: Python 2.7, Python 3.5 Added file: http://bugs.python.org/file40857/s1.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25473> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25471] socket.recv() blocks while it's gettimeout() returns 0.0
New submission from Alexey Gorshkov: socket created with listening socket set to setblocking(False). gettimeout() of accept()-returned socket returns 0.0 , but recv() method blocks while client is connected and not sending any data. If client disconnects, socket returned by accept() starting return 0-length bytes string without blocking. glibc doc on recv(): --- If nonblocking mode is set for SOCKET, and no data are available to be read, 'recv' fails immediately rather than waiting. --- testing server and client code attached. tested with Python 3.5.0 and Python 2.7.10 -- files: s1.py messages: 253418 nosy: animus priority: normal severity: normal status: open title: socket.recv() blocks while it's gettimeout() returns 0.0 versions: Python 2.7, Python 3.5 Added file: http://bugs.python.org/file40855/s1.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25471> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22140] python-config --includes returns a wrong path (double prefix)
Alexey Gorshkov added the comment: I don't understand: Why python-config needs to seek realpath? Why python-config is trying to be smarter than one who starts ./configure script? As so, the right thing to this, is remove smart parts from python-config. But as for fast hack in to this is replace line 'prefix_real=$(installed_prefix $0)' with 'prefix_real=$prefix_build'. -- nosy: +animus ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22140 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21430] Document ssl.pending()
Alexey Gorshkov added the comment: Issue #21430: additions to the description of non-blocking SSL sockets I do not see any mention of .pending() in Your commit. Is this some personal hate to subject? Are You going to document this method or not? Documenting it on line of text. If You are not going to document this method, will You accept my patch for documentation adding this method? Simply saying: This issue is here, people wand documentation for what must be documented for over a 5 years now (http://bugs.python.org/issue1251). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21430 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21430] Document ssl.pending()
Alexey Gorshkov added the comment: Ok. As https://docs.python.org/dev/library/ssl.html#notes-on-non-blocking-sockets says: Calling select() tells you that the OS-level socket can be read from (or written to), and here is situation: len(select([ssl_socket],[],[], 0.2)[0]) returns 0, but ssl layer has pending data and SSLWantWriteError or SSLWantReadError instead of BlockingIOError are not raised, because there is no error.. How should app know what it's need to do another recv() call? Are You suggesting to make loop like this (as for non-blocking socket)? while True: ssl_socket.recv(4096) if something: break what I think is: pending() method - is fine solution for knowing needed information about ssl layer status. SSL_pending(3) is not deprecated in OpenSSL, and I do not see reason why it should be deprecated in python. I do not think it should be deprecated only because it is not used. And it is not need to tell about asyncio, Tornado or Twisted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21430 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com