soxoj / maigret

🕵️‍♂️ Collect a dossier on a person by username from thousands of sites
https://t.me/osint_maigret_bot
MIT License
10.14k stars 793 forks source link

ValueError: too many file descriptors in select() #1595

Open pacnos opened 3 months ago

pacnos commented 3 months ago

Checklist

Description

Info about Maigret version you are running and environment (--version, operation system, ISP provider):

Run maigret with 20 or more connection on a fast internet connection

Maigret will run in a ValueError: too many file descriptors in select()

You can fix this problem by requesting the opposite side to close the connection after the request was finished.

To do so, add the following header information to the request: "Connection": "close",

File: checking.py Function: make_site_result New Code (line 428):

    headers = {
        "User-Agent": get_random_user_agent(),
        "Connection": "close",
    }
banckie commented 3 months ago

I also have this issue,

headers = { "User-Agent": get_random_user_agent(), "Connection": "close", }

this did not fix it for me sadly