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

Client breaks/Getting timeouts when long Text() gets executed #160

Open
dylan-chong opened this issue May 17, 2018 · 3 comments
Open

Client breaks/Getting timeouts when long Text() gets executed #160

dylan-chong opened this issue May 17, 2018 · 3 comments

Comments

@dylan-chong
Copy link
Contributor

dylan-chong commented May 17, 2018

If I say something very long like the text below into my grammar (which has
structure Sentence <dictation>, then I encounter some problems.

Sentence Hello world this is a test that is testing very very very very long text
because after saying this very very very long text the server breaks and gets a
timeout warning

Problem 1: timeout

I get this warning:

Socket error connecting to aenea server. To avoid slowing dictation, we won't
try again for 5 seconds.

Problem 2: the client never reconnects.

If I say a command after the typing (of the long message) has finished, then
the client breaks. Even waiting 30 minutes does not allow client to
reconnect. I restart my vim to fix this

Funnily enough, if I do not see the command soon enough after the typing (of the long message) has
finished, this problem does not occur.

@calmofthestorm
Copy link
Member

Hmmm I frequently use long Text()s and have not seen this. What behavior does the server exhibit? Maybe try sending the equivalent RPC from a Python shell to rule out client side issues?

It's odd that the client does not reconnect. I'm guessing that the reason if you don't send the command soon it means the client does not try again, and thus does not run into it. The client is supposed to do a backoff and reconnect, so in theory even if you stopped and restarted the server, it should reconnect.

Not directly sure how to fix this, just some thoughts.

@dylan-chong
Copy link
Contributor Author

How might i send an equivalent rpc from a python shell?

@calmofthestorm
Copy link
Member

Take a look at the X11 test client for some examples: https://github.com/dictation-toolbox/aenea/blob/master/server/linux_x11/test-client.py

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