-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclosed socket warning #10
Comments
which version of Python e.g. 3.7.5 or ? I can try with the same version. There were/are some Python versions that this may be a bug in Python itself for. |
Oops, this is noted in aiohttp manual. I added a sleep just before loop close (not in loop) in bd50af6 |
Python version was 3.8, it was hidden in the log. Thanks you for the quick fix by the way! |
Yes looks like it could be a while for 4.0, thanks for your research. Asyncio itself is undergoing enhancements in future Python releases that will possibly bring other changes to my asyncio-using packages as well. |
Hi Michael, this is probably low priority, as the issue is in the underlying library(ies), but I still can reproduce the issue on 1.3.1 with:
After several broken links you will get something along the lines of:
If you're not getting these warnings on your system you can probably reproduce them using a Fedora 32 container. Anyway, thanks a lot for your effort! |
I wonder if git cloning this repo, and then increasing
git clone https://github.com/scivision/linkchecker-markdown/
pip install -e linkchecker-markdown the "-e" installs a live copy, where your edits are reflected on the next fresh |
Hi @scivision I tried with 1 and 2 seconds, but I haven't seen any change, the problem persists. Thank you |
… a clean output. Related to bug scivision#10 in the parent repository of this projects
Sometimes when running linkchecker against a folder with markdown files I get a warning at the end of the execution:
sys:1: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('<ip-addr-of-local-pc>', 60350), raddr=('<ip-addr-of-remote-url>', 443)> ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib64/python3.8/asyncio/selector_events.py:696: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=6> _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) ResourceWarning: Enable tracemalloc to get the object allocation traceback
This happens with linkcheckmd 1.3.0 on Fedora 32.
The text was updated successfully, but these errors were encountered: