Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

tls_client will be stuck in multiprocessing

Open yejunxi opened this issue 1 year ago • 1 comments
trafficstars

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

yejunxi avatar Dec 22 '23 08:12 yejunxi

Facing the same issue

Spikesdev avatar Nov 17 '24 21:11 Spikesdev