Catching connection lost on _write_bytes#453
Open
andr-04 wants to merge 6 commits intoaio-libs:mainfrom
Open
Conversation
Collaborator
|
👍 |
* commit '0a8af2355562ea961477738d66b3334332447186': Bump version and tweak setup.py (aio-libs#540) Fill changelog for 0.0.21 release (aio-libs#538) Support python 3.7 and 3.8 in tests and travis CI Update dependencies (aio-libs#485) chore(flake8): fixed flake8 errors (aio-libs#484) added support for sqlalchemy default parameters aio-libs#455 (aio-libs#456) Fix flake Fixed invalid datatime for MySQL 5.7 Rewrote tests to use pytest exclusively Fixed linting Attempted to move db completely to docker Fix Travis attempt 1 Fix aio-libs#454
* commit '8a32f052a16dc3886af54b98f4d91d95862bfb8e': (92 commits) Update changelog for 0.1.1 release (aio-libs#784) Bump pytest from 7.1.1 to 7.1.2 (aio-libs#781) XFail test_issue_36 for now to avoid failing for unrelated changes (aio-libs#779) Skip codecov uploads in scheduled daily tests (aio-libs#778) Bump codecov/codecov-action from 3.0.0 to 3.1.0 (aio-libs#777) Fix SSL connection handshake charset not respecting client configuration (aio-libs#776) Bump ncipollo/release-action from 1.9.0 to 1.10.0 (aio-libs#766) Bump actions/cache from 3.0.1 to 3.0.2 (aio-libs#771) Bump actions/download-artifact from 2 to 3 (aio-libs#765) Bump actions/upload-artifact from 2 to 3 (aio-libs#767) Update changelog for release (aio-libs#769) Checkout git source to access changelog for GitHub release creation Change next version to 0.1.0 in changelog Fix GHA badge in readme after aio-libs#734 (aio-libs#762) Fix SSCursor raising query timeout error on wrong query on MySQL DB (aio-libs#761) Specify explicit language for literal blocks in CONTRIBUTING.rst to reduce warnings in doc builds (aio-libs#760) fix `make checkrst` (aio-libs#759) Update sphinx requirement from <4.4.1,>=1.8.1 to 4.5.0 (aio-libs#751) Bump codecov/codecov-action from 2.1.0 to 3.0.0 (aio-libs#758) Bump actions/cache from 2.1.7 to 3.0.1 (aio-libs#752) ...
Codecov Report
@@ Coverage Diff @@
## master #453 +/- ##
==========================================
- Coverage 92.72% 92.69% -0.04%
==========================================
Files 38 38
Lines 5569 5571 +2
Branches 943 942 -1
==========================================
Hits 5164 5164
- Misses 317 320 +3
+ Partials 88 87 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
3 tasks
v0.2.0 * tag 'v0.2.0': (78 commits) Update changelog for 0.2.0 release Migrate GHA pypi publish action inputs to kebab-case Bump pytest from 7.3.1 to 7.3.2 Bump coverage from 7.2.6 to 7.2.7 Migrate away from using deprecated `set-output` in GHA Implement Trusted Publishing for PyPI Remove tests for EoL MariaDB versions 10.3, 10.7 and 10.8, added tests for MariaDB 10.9, 10.10, 10.11 Add pre-commit config for pyupgrade --py37-plus Modernize code with `pyupgrade --py37-plus` Implement Trusted Publishing for Test PyPI Bump codecov/codecov-action from 3.1.3 to 3.1.4 Bump coverage from 7.2.5 to 7.2.6 Bump pytest-cov from 4.0.0 to 4.1.0 Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.8.6 Bump coverage from 6.5.0 to 7.2.5 Bring flake8 version in GitHub actions in sync with requirements-dev.txt Add CodeQL workflow for GitHub code scanning Bump py-actions/flake8 from 2.2.0 to 2.2.1 Bump codecov/codecov-action from 3.1.1 to 3.1.3 Bump ipdb from 0.13.9 to 0.13.13 ... # Conflicts: # aiomysql/connection.py
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's possible the connection can dropping without any notification. There was caught the connection lost while making a request to MySQL through peewee_async:
Because of the connection remains in a wrong state (
self._writer.transport.closed == True, butself.closed == False), it is put to the pool again onrelease().