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

Send heartbeat messages #24

Closed
juniorz opened this issue May 24, 2017 · 7 comments
Closed

Send heartbeat messages #24

juniorz opened this issue May 24, 2017 · 7 comments

Comments

@juniorz
Copy link
Member

juniorz commented May 24, 2017

This might also need the implementation of the 'IGNORE_UNREADABLE' flag.

@juniorz juniorz added this to the Working prototype milestone May 24, 2017
@tuliocasagrande
Copy link
Contributor

tuliocasagrande commented Nov 22, 2017

TODO:

  • IGNORE_UNREADABLE flag
  • Make heartbeat time configurable (in OTRV4_STATE_ENCRYPTED_MESSAGES)
  • Build heartbeat message

@natalieesk
Copy link
Contributor

natalieesk commented Nov 30, 2017

[deleted todo about errors]

@claucece
Copy link
Member

@natalieesk Why is ERROR_1 part of this issue? It is part of #2 . Errors, in fact, have not been properly defined as to implement them. When the IGNORE UNREADABLE flag is NOT set, that error is used. That error has nothing to do with heartbeats.. so why is it part of this issue?

@claucece
Copy link
Member

And also, the IGNORE_UNREADABLE flag is not set to false. It is usually set to '0x01', which is a code that flags have. If, for example, on the future, another flag is defined.. it should be set to another code, like '0x02' or similar :)

@natalieesk
Copy link
Contributor

Hey, fair question. So part of this story is implementing the IGNORE_UNREADABLE flag. As there is logic around this flag relating to errors, it seemed reasonable to include that here. So you check what happens when the flag is set and check what happens when it's not. I had perceived that other story to be more about error handling, and not the reply_with_errors part. I don't think this is too much scope creep.

What do you mean by the errors not being properly defined? They're in the spec. Is there something we wanted to change about them?

We're not setting the flag to false, that's just a comment we made at the beginning in terms of how we were thinking about it. The flags are set to 0 by default so an IGNORE_UNREADABLE flag equals 1. This is already in the code.

@claucece
Copy link
Member

claucece commented Nov 30, 2017

What do you mean by the errors not being properly defined? They're in the spec. Is there something we wanted to change about them?

There is a lot of other errors that we did not include.

The error is not part of heartbeat as the flag IGNORE_UNREADABLE is not per se for heartbeat messages.

@natalieesk
Copy link
Contributor

Does not integrate with Pidgin plugin. We may want to do this as a different issue.

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

4 participants