Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
567 stars 90 forks source link

make_aio_client block thread #207

Closed Zacama closed 10 months ago

Zacama commented 1 year ago

I am sorry for my bad English. Hello, I encountered a problem when debugging. I try to use make_aio_clientto get a client. The server is online, I can get a client successfully, but if the server is offline, and make_aio_client block the thread. Then I found that, in file thriftpy2/contrib/aio/socket.py, image the code block. I want to know if it is possible to use async here to implement. Thank you.