zmq.error.Again: Resource temporarily unavailable
Hi,I'm using zeroapi in kubernates and I get an annoying issues:

And the issues happened randomly. my zmq version is pyzmq-22.3.0. Could you please help me how to solve my problems?
There is a timeout parameter in the client, the default is 2000ms (2s) https://github.com/Ananto30/zero/blob/main/zero/client.py#L42
If you think your program can take more time (seems like from your error), please set the timeout while creating the client like this -
client = ZeroClient("<HOST>", 8000, default_timeout=10000)
There is a timeout parameter in the client, the default is 2000ms (2s) https://github.com/Ananto30/zero/blob/main/zero/client.py#L42
If you think your program can take more time (seems like from your error), please set the timeout while creating the client like this -
client = ZeroClient("<HOST>", 8000, default_timeout=10000)
Thanks to reply.And I had set the timeout parameter like this:

Is there another possible reason to cause this issues?
Are you facing the issue even after setting the timeout?
Are you facing the issue even after setting the timeout?
Yes.
I need to test this thoroughly. From my point of view, it was only happening for the timeouts.
Add test for timeout and "Resource temporarily unavailable".
Hi,Is there something I can help to do? By the way,my app started flask server and rpc server at the same time.May this be a reason to cause the issue?
It would be really amazing if you can help on the above issue #12 :pray: I couldn't manage time yet.
Btw how are you running two servers at the same time? Are you using a process manager like supervisord?
It would be really amazing if you can help on the above issue #12 🙏 I couldn't manage time yet.
Btw how are you running two servers at the same time? Are you using a process manager like supervisord?
Yes.I start rpc server on main thread and flask server on fork thread.
Yes.I start rpc server on main thread and flask server on fork thread.
Then you use the zero client inside the function of flask server?
@ACEGuiPeng any update on this? Or I will close the issue as solved.
Usually happens for timeout issues, otherwise connection issues. So I made two different ZeroExceptions - TimeoutException and ConnectionException in this pr https://github.com/Ananto30/zero/pull/29