Skip to content
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

DeprecationWarning: Using send() method on sockets returned from get_extra_info('socket') will #156

Open
chapimenge3 opened this issue Dec 30, 2023 · 0 comments

Comments

@chapimenge3
Copy link

To Reproduce
Run the below code(copy pasted form the example)

import asyncio
from proxybroker import Broker

async def show(proxies):
    while True:
        proxy = await proxies.get()
        if proxy is None: break
        print('Found proxy: %s' % proxy)

proxies = asyncio.Queue()
broker = Broker(proxies)
tasks = asyncio.gather(
    broker.find(types=['HTTP', 'HTTPS'], limit=10),
    show(proxies))

loop = asyncio.get_event_loop()
loop.run_until_complete(tasks)

Describe the bug
/usr/lib/python3.10/asyncio/trsock.py:20: DeprecationWarning: Using send() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.
warnings.warn(
DeprecationWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/asyncio/trsock.py:20: DeprecationWarning: Using recv() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.
warnings.warn(
DeprecationWarning: Enable tracemalloc to get the object allocation traceback
Found proxy: <Proxy US 0.39s [HTTP: Transparent] 34.64.85.78:3128>
Found proxy: <Proxy KR 0.40s [HTTP: High] 211.222.252.187:80>
Found proxy: <Proxy US 0.44s [HTTP: High] 104.45.128.122:80>
Found proxy: <Proxy US 0.46s [HTTP: High] 159.223.183.111:80>
Found proxy: <Proxy US 0.47s [HTTP: High] 47.89.240.232:56682>
Found proxy: <Proxy US 0.53s [HTTP: High] 159.138.122.91:18080>
Found proxy: <Proxy FR 0.56s [HTTP: High] 51.15.242.202:8888>
Found proxy: <Proxy FR 0.57s [HTTP: High] 164.132.170.100:80>
Found proxy: <Proxy UA 0.58s [HTTP: High] 94.45.74.60:8080>
Found proxy: <Proxy CN 0.59s [HTTP: High] 60.12.168.114:9002>
/usr/lib/python3.10/asyncio/trsock.py:20: DeprecationWarning: Using close() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.
warnings.warn(
DeprecationWarning: Enable tracemalloc to get the object allocation traceback

Desktop (please complete the following information):

  • OS: WSL(ubuntu)
  • Python: Python 3.10.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant