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

tls_client will be stuck in multiprocessing #101

Open
yejunxi opened this issue Dec 22, 2023 · 1 comment
Open

tls_client will be stuck in multiprocessing #101

yejunxi opened this issue Dec 22, 2023 · 1 comment

Comments

@yejunxi
Copy link

yejunxi commented Dec 22, 2023

python 3.10.8
tls-client 0.2.2
centos7

Hello, I have encountered this issue while using it,tls_client will be stuck in multiprocessing, demo:

import multiprocessing
import tls_client


def start():
    url = 'http://www.baidu.com'
    r = tls_client.Session(
        client_identifier="chrome110",
        random_tls_extension_order=True
    ).get(url, timeout_seconds=6)

    # Will not execute here and no exceptions thrown
    print(r.status_code)

if __name__ == '__main__':
   multiprocessing.Process(
       target=start,
       args=()
   ).start()

   while True:
       pass

But I can run normally under Mac

@Spikesdev
Copy link

Facing the same issue

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

2 participants