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

Race/block condition when running client and server in same asyncio eventloop (under pytest) #1603

Open
rambo opened this issue Mar 15, 2024 · 2 comments

Comments

@rambo
Copy link

rambo commented Mar 15, 2024

all async as per title

Describe the bug

When running both server and client under pytest polling values and change notifications fail with timeout.

To Reproduce

Or see https://gitlab.com/advian-oss/python-asynuapytestexample/-/merge_requests/1 CI test results

Expected behavior

Running both server and client under same eventloop should work normally.

Version

Python-Version: 3.11

opcua-asyncio Version (e.g. master branch, 0.9): asyncua==1.1.0

@rambo
Copy link
Author

rambo commented Mar 15, 2024

Root cause might be on the client side, I will update tests to demonstrate later but when I moved the server to a subprocess in the project where I originally ran into this it didn't help.

@oroulet
Copy link
Member

oroulet commented Mar 15, 2024

I have not looked at your code yet but we run clients and server in same loop all the time in tests so your problem must be some special case. Or a bug on your side

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