- 28 Mar, 2016 2 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
- 27 Mar, 2016 3 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
On my machine, this cuts the build time by a fourth to a third. Not ready to merge, submitting for testing on CI (esp Windows). Cython calls are threaded because they release the GIL. The most expensive part was merging results, which holds the GIL, so use multiprocessing for that. Pre-combine the identical results that we expect to get for two sets of defines to reduce the number of merges. Change internal data structures to be immutable to make debugging this easier (and substantially faster when pickling through multiprocessing.)
-
- 25 Mar, 2016 2 commits
-
-
Jason Madden authored
-
Jason Madden authored
Don't subclass dict for environ by default, but leave that option available. When printing, make sure that we have a secure environ. Unfortunately, this is relatively fragile but it's the only way to not break WebOb/Pyramid.
-
- 24 Mar, 2016 1 commit
-
-
Jason Madden authored
Right now, this is only used for suppressing the printing of potentially sensitive information, but in the future there could be other uses. This is technically not compliant with PEP3333 which specifies that the type(environ) must be dict, but it's not clear if that practically matters anymore (it looks like it might be a holdover from supporting Python 1.5.2 before one could subclass the builtin dict; see https://mail.python.org/pipermail/web-sig/2003-December/000394.html). Fixes #779.
-
- 23 Mar, 2016 6 commits
-
-
Jason Madden authored
-
Jason Madden authored
test__socket_close specifies AF_INET sockets so make sure and use an AF_INET address in the server. This affects only Windows.
-
Jason Madden authored
-
Jason Madden authored
- Additional testing on a mix of ip4 and ip6 connections. - Simplify address parsing. - changelog. Fixes #495.
-
Felix Kaiser authored
That'll make the socket work both with IPv4 and IPv6.
-
Jason Madden authored
-
- 22 Mar, 2016 10 commits
-
-
Jason Madden authored
Comments inline. [skip ci]
-
Jason Madden authored
We now depend on CFFI/Python new enough that it should be built during setup/installation. Trying to build at runtime easily results in "gevent" directories scattered all over the system.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
This makes the two branches equivalent in terms of scheduling. Fixes notably test_ftplib.py which relies on running a "threaded" server.
-
Jason Madden authored
-
Jason Madden authored
- Compliance: If :func:`gevent.select.select` is given a negative *timeout* argument, raise an exception like the standard library does. - Compliance: If :func:`gevent.select.select` is given closed or invalid file descriptors in any of its lists, raise the appropriate ``EBADF`` exception like the standard library does. Previously, libev would tend to return the descriptor as ready. In the worst case, this adds an extra system call, but may also reduce latency if descriptors are ready at the time of entry. - Compliance: :meth:`gevent.select.poll.unregister` raises an exception if *fd* is not registered, like the standard library. - Compliance: :meth:`gevent.select.poll.poll` returns an event with ``POLLNVAL`` for registered fds that are invalid. Previously it would tend to report both read and write events.
-
- 21 Mar, 2016 8 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
This serves to be better documenting about what they're doing and why, instead of having a dozen slightly different loops that each have to be examined.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
- 18 Mar, 2016 4 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jakub Klama authored
-
- 17 Mar, 2016 2 commits
-
-
Jason Madden authored
Fix #775
-
Jason Madden authored
-
- 16 Mar, 2016 2 commits
-
-
Jason Madden authored
-
Jason Madden authored
Fix test_socket under 3.4 with the ares resolver by handling in Python code two cases ares itself doesn't handle.
-