Yury Selivanov
b73b7da378
Add .editorconfig
2016-10-22 13:27:57 -04:00
Yury Selivanov
359d4c1243
Let concurrent.futures to configure the number of workers in thread pool
2016-10-22 13:27:13 -04:00
Yury Selivanov
dd812a4f00
Raise RuntimeError if Transport's socket is used with loop.add_writer
...
Some rules (for now at least):
* We dup sockets that are passed to loop.create_server,
loop.create_connection, etc. Since those sockets can be closed
outside of uvloop, it's just safer to dup.
* We wrap Transport's FDs into Python sockets when
get_extra_info('socket') is called. We don't dup them in this
case (they get detached with the transport they were created for
is closed).
* If an FD from an active Transport is passed to loop.add_writer,
loop.add_reader, loop.remove_writer or loop.remove_reader we now
raise a RuntimeError (as does asyncio 3.6).
2016-10-21 19:23:08 -04:00
Yury Selivanov
ad7d2b3821
Add set_protocol and get_protocol to uvloop Transports (issue #42 )
2016-10-21 16:04:37 -04:00
Yury Selivanov
b2d34939a1
Use os.dup in connect_accepted_socket; explain why it's necessary
2016-10-20 12:08:04 -04:00
Yury Selivanov
80b5ca4458
Use PyMem_Raw* functions to avoid crashes in Python 3.6
2016-10-18 16:57:14 -04:00
Yury Selivanov
89bf69f497
Make ^C tracebacks a bit prettier
2016-10-14 19:12:56 -04:00
Yury Selivanov
fb62f85747
Only allow SOCK_STREAM Unix sockets for create_connection/server
2016-10-07 12:35:11 -04:00
Yury Selivanov
b87c5e3504
Bump the version to 0.5.4
2016-10-05 14:27:16 -04:00
Yury Selivanov
4c0ee668f4
tests: Fix aiohttp test for the latest version of the library
2016-10-05 14:15:13 -04:00
Yury Selivanov
71c5360559
Completely rewrite signal handling.
...
Instead of using libuv signal handlers, we now simply use
signal.set_wakeup_fd function (exactly the same approach as
in asyncio). As the result, the new code is *much* simpler,
and uvloop programs don't mess with low-level signal
processing APIs.
2016-10-05 14:15:13 -04:00
Yury Selivanov
d260c31206
Make Future/Task compatible with asyncio in Python 3.6
2016-09-15 16:39:19 -04:00
Koichi Shiraishi
db70c2be64
setup.py: add missing space after '-fPIC' for ARCHFLAGS
...
- Basically, if users want to set ARCHFLAGS, maybe run the
ARCHFLAGS='-arch x86_64' python setup.py install
but it will define of CFLAGS to
CFLAGS=' -O2 -fPIC-arch x86_64'
Needs one space after '-fPIC'
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2016-09-11 19:21:42 +09:00
Yury Selivanov
6b494bbe90
Fix README to render on PyPI
2016-08-24 12:36:09 -04:00
Yury Selivanov
40c3470f6b
Bump version to v0.5.3
2016-08-24 12:22:46 -04:00
Peter Cooner
7d5c37832f
Include kstat lib for solaris
2016-08-24 12:19:51 -04:00
Simon Gomizelj
ebf6f0b949
Fix typo in create_datagram_endpoint
...
Typo causes create_datagram_endpoint to send traffic to the local_addr
instead of the remote_addr.
Closes #45 .
2016-08-20 11:40:46 -04:00
Yury Selivanov
7ecb39d3ad
Bump the version to v0.5.2
2016-08-11 17:15:26 -04:00
Yury Selivanov
03ad9fa62c
Fix create_connection when sock and ssl args are passed
2016-08-11 17:14:35 -04:00
Yury Selivanov
004724126b
Bump the version to v0.5.1
2016-08-09 20:01:22 -04:00
Yury Selivanov
7c0c0f41d1
Fix a regression in loop.connect_accepted_socket
2016-08-09 19:51:57 -04:00
Yury Selivanov
25e830dd35
Tighten up code in loop.connect_accepted_socket
2016-08-09 19:16:19 -04:00
Yury Selivanov
59026e3b86
Fix typo (issue #44 )
2016-08-09 19:12:03 -04:00
Yury Selivanov
b13336121f
Add connect_accepted_socket.
2016-08-08 22:04:58 -04:00
Yury Selivanov
e7ff8579b7
travis: Disable Mac OS builds for now
2016-08-02 19:34:40 -04:00
Yury Selivanov
d2f5d0c5db
tests: Adjust test_call_later_1 to see why it fails on travis/mac
2016-08-02 18:47:27 -04:00
Yury Selivanov
9104dfbaef
travis: Test only Mac OS 10.11
2016-08-02 18:15:21 -04:00
Elvis Pranskevichus
2351d78398
Use Travis CI to produce wheels for Linux and macOS
2016-08-02 09:42:57 -04:00
Elvis Pranskevichus
5389b30411
Fix running tests with asyncio debug mode on
2016-07-29 11:56:43 -04:00
Elvis Pranskevichus
d0a59b0466
Make sure the correct version of Cython is called from Makefile
2016-07-29 11:55:40 -04:00
Yury Selivanov
53203bf3e1
tests: Add an extra await to the process executor test
2016-07-27 14:01:41 -04:00
Yury Selivanov
ad5181b36a
tests: Add tests for process/thread pool executors
2016-07-27 13:55:55 -04:00
Yury Selivanov
08aa8150a7
readme: Add a link to the wiki page
2016-07-27 11:10:04 -04:00
Yury Selivanov
08880225f6
Bump the version to 0.5.0
2016-07-19 08:08:23 +02:00
Elvis Pranskevichus
b34d8b9ec7
Mark uvloop as Python 3-only
2016-07-16 11:19:42 -04:00
Yury Selivanov
30378dfc13
Make sure connection_lost is called when connection_made is errored out
2016-07-14 19:32:48 -04:00
Yury Selivanov
87d4f11bfc
Fix crash in transport.get_extra_info('socket') when tr is closed
2016-07-14 19:18:50 -04:00
Yury Selivanov
94b0ad640b
Bump the version to v0.4.34
2016-07-12 15:33:02 -04:00
Yury Selivanov
0505d80fa6
travis: Another attempt at making travis to run debug build tests
2016-07-12 15:22:12 -04:00
Yury Selivanov
8a5813429e
travis: Drop no-binary pip option
2016-07-12 15:16:35 -04:00
Yury Selivanov
271136b13b
travis: Also test debug build
2016-07-12 15:00:23 -04:00
Yury Selivanov
05bba8253a
Gather stats on uv_handler_t allocs in debug mode
2016-07-12 14:57:42 -04:00
Yury Selivanov
7b56550e05
handle: When warning about an unclosed recource, print its source tb
2016-07-12 14:43:48 -04:00
Yury Selivanov
f79d4d7b5a
tests: Fix test_calls_debug_reporting in debug build
2016-07-12 14:43:39 -04:00
Yury Selivanov
fce90943e2
handle: Remove dead code
2016-07-12 13:35:58 -04:00
Yury Selivanov
fc923f99f4
handle: Remove __NOHANDLE__; just use NULL
2016-07-12 13:35:15 -04:00
Yury Selivanov
2af7b2adbe
Correctly dealloc detached handlers
...
This is a different fix for issue #37 . The original fix that removed
dynamic memory allocation of uv_handles had to be reverted.
2016-07-12 13:24:56 -04:00
Yury Selivanov
7b0b195d10
Revert "Don't use dynamic memory allocation for libuv handles/requests"
...
This reverts commit 6ebd07d88a
.
2016-07-12 13:09:12 -04:00
Yury Selivanov
2b060e170f
handle: Ensure self._handle is set to NULL in _abort_init()
2016-07-12 10:59:38 -04:00
Yury Selivanov
575f71bdbe
Add a test that uvloop doesn't set FD_CLOEXEC to stdin/stdout/stderr
...
Issue #40 .
2016-07-09 12:49:27 -04:00