ixnetwork_restpy icon indicating copy to clipboard operation
ixnetwork_restpy copied to clipboard

Locking Up Asyncio Event Loop

Open iwoloschin opened this issue 2 years ago • 2 comments

I'm trying to use this library from an asyncio application and it seems that sometimes it is somehow hard locking up asyncio's event loop, even when I'm taking care to run with asyncio.to_thread(). I don't have any great feedback beyond that, at some point after it establishes the connection the entire application locks up.

I do not have sanitized logs I can share publicly today, though I can create those next week. I'll also open up a discussion with my Keysight rep separately, but I wanted to post this issue here incase anyone from the community is also seeing these problems.

iwoloschin avatar Jun 30 '23 21:06 iwoloschin

Looking into this a bit more the entire event loop is locking up when attempting to create a SessionAssistant. This is being done in a function properly threaded off with await asyncio.to_thread() so there's really no reason for the entire event loop to lock up.

iwoloschin avatar Jul 05 '23 20:07 iwoloschin

Further investigation suggests an incompatibility with uvloop, though what exactly is wrong is still unknown.

iwoloschin avatar Jul 06 '23 16:07 iwoloschin