You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When using an asynchronous client to connect to a non-existent IP, the program hangs indefinitely because the socket operation is pending globally. This issue causes the entire program to be stuck.
Steps to Reproduce:
Use the following code to create an asynchronous client that attempts to connect to a non-existent IP.
The program will hang and not proceed beyond the client connection attempt.
Expected Behavior:
The connection attempt should timeout after the specified connect_timeout duration and raise an appropriate exception, allowing the program to handle it gracefully and don't block loop.
Actual Behavior:
The program hangs indefinitely and does not raise an exception after the timeout period. This behavior prevents the rest of the program from executing.
Environment:
thriftpy2 version: 0.5.1rc1
Python version: 3.9
Operating System: Debian GNU/Linux
Additional Information:
The issue appears to be related to how the socket operation is handled when connecting to an unreachable IP address. This results in the entire program being stuck, which can be problematic for applications relying on asynchronous operations.
The text was updated successfully, but these errors were encountered:
fuergaosi233
changed the title
[BUG] Title: Asynchronous Client Hangs When Connecting to Non-Existent IP
[BUG] Asynchronous Client Hangs When Connecting to Non-Existent IP
May 28, 2024
Description:
When using an asynchronous client to connect to a non-existent IP, the program hangs indefinitely because the socket operation is pending globally. This issue causes the entire program to be stuck.
Steps to Reproduce:
Code to Reproduce:
Expected Behavior:
The connection attempt should timeout after the specified
connect_timeout
duration and raise an appropriate exception, allowing the program to handle it gracefully and don't block loop.Actual Behavior:
The program hangs indefinitely and does not raise an exception after the timeout period. This behavior prevents the rest of the program from executing.
Environment:
thriftpy2
version: 0.5.1rc1Additional Information:
The issue appears to be related to how the socket operation is handled when connecting to an unreachable IP address. This results in the entire program being stuck, which can be problematic for applications relying on asynchronous operations.
The text was updated successfully, but these errors were encountered: