AsyncSchemaRegistryClient is unable to handle concurrent requests
See original GitHub issueDescribe the bug
Related to https://github.com/encode/httpx/issues/1478, I’m getting this exception while using the same instance of AsyncSchemaRegistryClient
in two different places, raising httpx.RemoteProtocolError: can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE
. The source code of the client is similar to the example that shows how to reproduce the issue in httpx and the answer to this comment mentions using the context manager once at a time would be the fix to it.
I could manage to overcome this issue by creating one instance of the client for every class that depends on AsyncSchemaRegistryClient
To Reproduce Steps to reproduce the behavior:
I’ll need some time to write a small snippet to reproduce it, so bear with me 😬
Expected behavior
The client is able to handle two (or more) concurrent calls to the schema registry
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (7 by maintainers)
Top GitHub Comments
@marcosschroh I’ll try it and let you know 👍
@marcosschroh I’m using
httpx==0.22.0