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

get_message timeout #40

Closed
ajperella opened this issue May 23, 2016 · 2 comments
Closed

get_message timeout #40

ajperella opened this issue May 23, 2016 · 2 comments

Comments

@ajperella
Copy link

Should the use of the timeout parameter generate the following on a timeout?
Traceback (most recent call last):
...
message = await self.C.deliver_message(timeout=3)
File "py3\lib\site-packages\hbmqtt\client.py", line 337, in deliver_message
if deliver_task.exception():
File "c:\python35\Lib\asyncio\futures.py", line 288, in exception
raise InvalidStateError('Exception is not set.')
asyncio.futures.InvalidStateError: Exception is not set.

@njouanin
Copy link
Owner

Hi, Can you describe the use case (sample script could be perfect). Is seems (because of InvalidStateError) that your client is not connected to a broker when deliver_message is called.

@njouanin
Copy link
Owner

Previous comment analysis is wrong. There's obviously a problem with the management of the deliver_task. deliver_message should raise a asyncio.TimeoutError.

@njouanin njouanin added this to the 0.7.2 milestone May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants