Make ModularXmppClientToServerConnection non-final#697
Make ModularXmppClientToServerConnection non-final#697MarcelHeckel wants to merge 1 commit intoigniterealtime:masterfrom
Conversation
|
Thanks for your contribution. Much appreciated.
Could you elaborate a bit on what you are trying to achieve? |
|
The main problem is that we can have large stanzas combined with slow internet connections. |
|
Seems what you really need is |
|
@Flowdalic I could make a implementation of |
We had a user report that the timestamp obtained via getLastStanzaReceived() may bee too far in the past when large stanzas are received over slow internet connections [1]. Therefore, PingManger now uses this new API to obtain a potentially more fine-grained timestamp regarding incoming data. 1: igniterealtime#697 (comment)
See #698 |
|
Looks good! |
We need to override the method
AbstractXMPPConnection.parseAndProcessStanza()to add some functionality to theXmlPullParser. This is possible withXMPPBOSHConnectionandXMPPTCPConnection.The same flexibility is needed in
ModularXmppClientToServerConnection, but it is final, so we cannot override the method. Personally, I see no good reason why this class isfinal.