<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/eventlet.git/tests/socket_test.py, branch codecov</title>
<subtitle>github.com: eventlet/eventlet.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/'/>
<entry>
<title>greenio: socket.connect_ex returned None instead of 0 on success</title>
<updated>2021-03-25T07:12:43+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2021-03-25T07:12:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=50441fc1563b85a275ea9937208909ade9907eb3'/>
<id>50441fc1563b85a275ea9937208909ade9907eb3</id>
<content type='text'>
https://github.com/eventlet/eventlet/issues/696

Co-authored-by: Skyline124 &lt;gregoire2011dumas@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/eventlet/eventlet/issues/696

Co-authored-by: Skyline124 &lt;gregoire2011dumas@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>New timeout error API: .is_timeout=True on exception object</title>
<updated>2017-01-10T17:49:15+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2016-12-22T01:35:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=54be7593ab8a35c9c80683c6d1af0adbe7763fa4'/>
<id>54be7593ab8a35c9c80683c6d1af0adbe7763fa4</id>
<content type='text'>
Please use eventlet.is_timeout(ex) or getattr(ex, 'is_timeout', False)
instead of searching substrings in exception message.

https://github.com/eventlet/eventlet/pull/346
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Please use eventlet.is_timeout(ex) or getattr(ex, 'is_timeout', False)
instead of searching substrings in exception message.

https://github.com/eventlet/eventlet/pull/346
</pre>
</div>
</content>
</entry>
<entry>
<title>test_import_patched_defaults bended to play with pyopenssl&gt;=16.1.0</title>
<updated>2016-12-31T17:50:04+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2016-12-30T03:54:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=b7b357189d7a7a2b740c89c30621f920c83d4c9c'/>
<id>b7b357189d7a7a2b740c89c30621f920c83d4c9c</id>
<content type='text'>
Basically this patch replaces urllib with custom module that is guaranteed not imported before patching.
https://github.com/eventlet/eventlet/issues/362

More general issue here https://github.com/eventlet/eventlet/issues/368
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Basically this patch replaces urllib with custom module that is guaranteed not imported before patching.
https://github.com/eventlet/eventlet/issues/362

More general issue here https://github.com/eventlet/eventlet/issues/368
</pre>
</div>
</content>
</entry>
<entry>
<title>greenio: _recv_loop behaviour with recv_into on closed sock</title>
<updated>2016-10-27T21:18:15+00:00</updated>
<author>
<name>David Szotten</name>
<email>davidszotten@gmail.com</email>
</author>
<published>2016-10-27T21:18:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=fc0e96fbc50e62d525ff9f91265b4d0421a73008'/>
<id>fc0e96fbc50e62d525ff9f91265b4d0421a73008</id>
<content type='text'>
make sure `_recv_loop` returns the correct value when `recv_meth` is of
foo_into type (fills a buffer and returns number of bytes, not the data)

https://github.com/eventlet/eventlet/pull/353
https://github.com/onefinestay/nameko/issues/368</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
make sure `_recv_loop` returns the correct value when `recv_meth` is of
foo_into type (fills a buffer and returns number of bytes, not the data)

https://github.com/eventlet/eventlet/pull/353
https://github.com/onefinestay/nameko/issues/368</pre>
</div>
</content>
</entry>
<entry>
<title>ipv6: getaddrinfo would fail with scope index</title>
<updated>2016-08-30T14:25:23+00:00</updated>
<author>
<name>Jarrod Johnson</name>
<email>jjohnson2@lenovo.com</email>
</author>
<published>2016-06-02T18:37:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=ac4e28fd1a52dc6488ed5d80e37db19a2ed997dd'/>
<id>ac4e28fd1a52dc6488ed5d80e37db19a2ed997dd</id>
<content type='text'>
Discard any '%' delimited suffix.

https://github.com/eventlet/eventlet/pull/322
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Discard any '%' delimited suffix.

https://github.com/eventlet/eventlet/pull/322
</pre>
</div>
</content>
</entry>
<entry>
<title>bundle dnspython in support/; resolving is always green</title>
<updated>2016-08-24T06:51:28+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2016-08-20T14:40:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=52b09becacd23f384cf69ae37d70c893c43e3b13'/>
<id>52b09becacd23f384cf69ae37d70c893c43e3b13</id>
<content type='text'>
Fixes installation issue when older dnspython is present in system packages
https://github.com/eventlet/eventlet/pull/341
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes installation issue when older dnspython is present in system packages
https://github.com/eventlet/eventlet/pull/341
</pre>
</div>
</content>
</entry>
<entry>
<title>socket: family kwarg name compatibility</title>
<updated>2016-05-24T08:03:04+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2016-05-24T07:59:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=d0837ba1cf8324d678b54567a7570421b7ede18c'/>
<id>d0837ba1cf8324d678b54567a7570421b7ede18c</id>
<content type='text'>
GreenSocket was (family_or_realsock=AF_INET, ...) which breaks code like socket(family=...)
https://github.com/eventlet/eventlet/issues/319
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GreenSocket was (family_or_realsock=AF_INET, ...) which breaks code like socket(family=...)
https://github.com/eventlet/eventlet/issues/319
</pre>
</div>
</content>
</entry>
<entry>
<title>socket: Actually provide non-blocking DNS methods</title>
<updated>2016-05-18T12:24:10+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub.stasiak@smarkets.com</email>
</author>
<published>2016-05-17T19:16:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=861d68439949b1f514ab9bbb53958a4592944c4a'/>
<id>861d68439949b1f514ab9bbb53958a4592944c4a</id>
<content type='text'>
The green socket module seemed to have only blocking DNS resolution
methods even with dnspython installed which is inconsistent with the
documentation.

This patch has a few consequences:

* an import cycle is eliminated
* if an import cycle reappears here it'll be visible

Note: eliminating the import cycle revealed an issue related to monkey
patching and the way we perform greendns tests (the test failures were
already present on Python 3.5[1] as that version has some import cycle
handling changes). The failures look like this:

======================================================================
FAIL: test_query_ans_types (tests.greendns_test.TestHostsResolver)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kuba/projects/eventlet/tests/greendns_test.py", line 97, in test_query_ans_types
    assert isinstance(ans, greendns.dns.resolver.Answer)
AssertionError

======================================================================
FAIL: test_query_unknown_no_raise (tests.greendns_test.TestHostsResolver)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kuba/projects/eventlet/tests/greendns_test.py", line 129, in test_query_unknown_no_raise
    assert isinstance(ans, greendns.dns.resolver.Answer)
AssertionError

This issue will be addressed in a separate commit.

This patch is contributed by Smarkets Limited.

[1] https://github.com/eventlet/eventlet/issues/267
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The green socket module seemed to have only blocking DNS resolution
methods even with dnspython installed which is inconsistent with the
documentation.

This patch has a few consequences:

* an import cycle is eliminated
* if an import cycle reappears here it'll be visible

Note: eliminating the import cycle revealed an issue related to monkey
patching and the way we perform greendns tests (the test failures were
already present on Python 3.5[1] as that version has some import cycle
handling changes). The failures look like this:

======================================================================
FAIL: test_query_ans_types (tests.greendns_test.TestHostsResolver)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kuba/projects/eventlet/tests/greendns_test.py", line 97, in test_query_ans_types
    assert isinstance(ans, greendns.dns.resolver.Answer)
AssertionError

======================================================================
FAIL: test_query_unknown_no_raise (tests.greendns_test.TestHostsResolver)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kuba/projects/eventlet/tests/greendns_test.py", line 129, in test_query_unknown_no_raise
    assert isinstance(ans, greendns.dns.resolver.Answer)
AssertionError

This issue will be addressed in a separate commit.

This patch is contributed by Smarkets Limited.

[1] https://github.com/eventlet/eventlet/issues/267
</pre>
</div>
</content>
</entry>
<entry>
<title>greenio: socket.recv() could return str; Thanks to jerzyk</title>
<updated>2015-09-06T00:43:42+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2015-09-06T00:43:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=001f31f8f8dfc581795f282609027b26c8a31833'/>
<id>001f31f8f8dfc581795f282609027b26c8a31833</id>
<content type='text'>
It must always return bytes.
https://github.com/eventlet/eventlet/issues/245
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It must always return bytes.
https://github.com/eventlet/eventlet/issues/245
</pre>
</div>
</content>
</entry>
<entry>
<title>green.socket: create_connection: UnboundLocalError on Python3</title>
<updated>2014-09-04T22:50:00+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2014-09-04T22:49:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=9d05c68fa209d73ef164909f8c8173d3e67deafb'/>
<id>9d05c68fa209d73ef164909f8c8173d3e67deafb</id>
<content type='text'>
Fixes https://github.com/eventlet/eventlet/issues/123
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/eventlet/eventlet/issues/123
</pre>
</div>
</content>
</entry>
</feed>
