-
Notifications
You must be signed in to change notification settings - Fork 428
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
Xep 0352 csi #703
Xep 0352 csi #703
Conversation
@@ -857,13 +859,25 @@ session_established({xmlstreamelement, | |||
stream_mgmt_handle_ack(session_established, El, StateData); | |||
|
|||
session_established({xmlstreamelement, | |||
#xmlel{name = <<"r">>} = El}, StateData) -> | |||
#xmlel{name = <<"r">>} = El}, | |||
#state{csi_state = active} = StateData) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space
Does it make sense to buffer the incoming stanzas as well?
I think that the main problem is that the XEP specifies almost nothing, especially not what should with stanzas sent by the client when it is inactive. |
Also, I believe that buffer size should be configurable from the config file. |
I've sent a message to xmpp standards mailing list. Here's the thread: http://mail.jabber.org/pipermail/standards/2016-March/031012.html. My personal opinion after re-thinking is that the server should discard the stanza and reply with an error to the client. |
Based on the conversation on the standrads mailing list I decided not to buffer incoming stanzas, but pass as usual. |
@@ -870,6 +870,7 @@ do_open_session_common(JID, #state{user = U, resource = R} = NewStateData0) -> | |||
privacy_list = PrivList}, | |||
fsm_next_state_pack(session_established, | |||
NewStateData). | |||
-define(xmlel(Name), #xmlel{name = Name}). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused macro
This PR addresses #680
Proposed changes include:
inactive
andactive
statesxep_0352_csi_SUITE
TODO: