| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
fully qualified class names of Python implemented classes.
|
|
|
|
| |
when contain an id in form " at 0x...".
|
|\
| |
| |
| | |
Fix localhost checking in FileHandler. Raised in #21970.
|
| | |
|
|\ \
| |/
| |
| | |
Thanks to William Orr.
|
| |
| |
| |
| | |
Thanks to William Orr.
|
|\ \
| |/
| |
| | |
Sort also imports in support/__init__.py
|
| |
| |
| |
| | |
Sort also imports in support/__init__.py
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
* Issue #19811, #22022: test_pathlib uses support.rmtree() instead of
shutil.rmtree() to remove the temporary directory.
* Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a
directory, not os.path.isdir()
|
| |
| |
| |
| | |
shutil.rmtree() to remove the temporary directory.
|
| |
| |
| |
| | |
directory, not os.path.isdir()
|
| | |
|
| |
| |
| |
| | |
ValueError on fstat() failure.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Use _testcapi.raise_signal() in test_signal
- close also os.pipe() file descriptors in some test_signal tests where they
were not closed properly
- Remove faulthandler._sigill() and faulthandler._sigbus(): reuse
_testcapi.raise_signal() in test_faulthandler
|
|\ \
| |/
| |
| |
| | |
Add a basic synchronization mechanism to wait until the child process is ready
before sending it a signal.
|
| |
| |
| |
| |
| | |
Add a basic synchronization mechanism to wait until the child process is ready
before sending it a signal.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since Python 3.3, the C signal handler writes the signal number into the wakeup
file descriptor and then schedules the Python call using Py_AddPendingCall().
asyncio uses the wakeup file descriptor to wake up the event loop, and relies
on Py_AddPendingCall() to schedule the final callback with call_soon().
If the C signal handler is called in a thread different than the thread of the
event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In
this case, the event loop has nothing to do and go to sleep again.
Py_AddPendingCall() is called while the event loop is sleeping again and so the
final callback is not scheduled immediatly.
This patch changes how asyncio handles signals. Instead of relying on
Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on
the wakeup file descriptor. asyncio reads signal numbers from the wakeup file
descriptor to call its signal handler.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since Python 3.3, the C signal handler writes the signal number into the wakeup
file descriptor and then schedules the Python call using Py_AddPendingCall().
asyncio uses the wakeup file descriptor to wake up the event loop, and relies
on Py_AddPendingCall() to schedule the final callback with call_soon().
If the C signal handler is called in a thread different than the thread of the
event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In
this case, the event loop has nothing to do and go to sleep again.
Py_AddPendingCall() is called while the event loop is sleeping again and so the
final callback is not scheduled immediatly.
This patch changes how asyncio handles signals. Instead of relying on
Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on
the wakeup file descriptor. asyncio reads signal numbers from the wakeup file
descriptor to call its signal handler.
|
|\ \
| |/
| |
| | |
ConnectionResetError
|
| |
| |
| |
| | |
ConnectionResetError
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
BrokenPipeError
If you want to handle the BrokenPipeError, you can easily reimplement
communicate().
Add also a unit test to ensure that stdin.write() + stdin.drain() raises
BrokenPipeError.
|
| |
| |
| |
| |
| |
| |
| |
| | |
If you want to handle the BrokenPipeError, you can easily reimplement
communicate().
Add also a unit test to ensure that stdin.write() + stdin.drain() raises
BrokenPipeError.
|
|\ \
| |/
| |
| | |
attribute. Based on patch by Martin Panter.
|
| |
| |
| |
| | |
attribute. Based on patch by Martin Panter.
|
|\ \
| |/
| |
| | |
Merge with 3.4.
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| | |
test_wait_errors()
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
_on_handshake() method
The _SelectorSslTransport constructor already calls it.
|
| |
| |
| |
| | |
The _SelectorSslTransport constructor already calls it.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
in debug mode
|
| |
| |
| |
| |
| | |
sys.stderr, to get output even if tests are run with the -j command line
option.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Tulip issue #184: Log subprocess events in debug mode
- Log stdin, stdout and stderr transports and protocols
- Log process identifier (pid)
- Log connection of pipes
- Log process exit
- Log Process.communicate() tasks: feed stdin, read stdout and stderr
- Add __repr__() method to many classes related to subprocesses
* Add BaseSubprocessTransport._pid attribute. Store the pid so it is still
accessible after the process exited. It's more convinient for debug.
* create_connection(): add the socket in the "connected to" debug log
* Clean up some docstrings and comments. Remove unused unimplemented
_read_from_self().
|
|\ \
| |/
| |
| | |
broken by the fix for security issue #19435. Patch by Zach Byrne.
|
| |\
| | |
| | |
| | | |
broken by the fix for security issue #19435. Patch by Zach Byrne.
|
| | |\
| | | |
| | | |
| | | | |
broken by the fix for security issue #19435. Patch by Zach Byrne.
|
| | | |
| | | |
| | | |
| | | | |
broken by the fix for security issue #19435. Patch by Zach Byrne.
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Tulip issue #183: log socket events in debug mode
- Log most important socket events: socket connected, new client, connection
reset or closed by peer (EOF), etc.
- Log time elapsed in DNS resolution (getaddrinfo)
- Log pause/resume reading
- Log time of SSL handshake
- Log SSL handshake errors
- Add a __repr__() method to many classes
* Fix ProactorEventLoop() in debug mode. ProactorEventLoop._make_self_pipe()
doesn't call call_soon() directly because it checks for the current loop
which fails, because the method is called to build the event loop.
* Cleanup _ProactorReadPipeTransport constructor. Not need to set again
_read_fut attribute to None, it is already done in the base class.
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Patch by Zachary Ware.
|