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

Specify sleep timing method for the websocket #7723

Closed
wants to merge 1 commit into from

Conversation

dpapavas
Copy link

@dpapavas dpapavas commented Apr 23, 2018

Specify sleep timing method for the websocket's keep-alive sender,
based on whether GCM is disabled.

Fixes #6644
// FREEBIE

Contributor checklist

  • Xiaomi Mi 4, Android 7.1.2 (LineageOS 14.1, w/o GCM support)
  • Motorola Moto G3, Android 7.1.2 (LineageOS 14.1, w/o GCM support)
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

See its accompanying PR signalapp/libsignal-service-java#53 for more details. This might be related to and partially or completely fix #7638, but the supplied log doesn't allow me to confirm this and the discussion makes me suspect it might alse be related to a different problem. I'm therefore didn't mention it in the commit message.

Specify sleep timing method for the websocket's keep-alive sender,
based on whether GCM is disabled.

Fixes signalapp#6644
// FREEBIE
@jtracey
Copy link
Contributor

jtracey commented Apr 24, 2018

To make sure it stays linked in the future, the accompanying PR is:
signalapp/libsignal-service-java#53

@dpapavas
Copy link
Author

dpapavas commented Aug 3, 2018

Just a reminder that this PR needs to be merged alongside signalapp/libsignal-service-java#53.

@dpapavas
Copy link
Author

Ping!

@Diapolo
Copy link

Diapolo commented Aug 22, 2018

@greyson-signal As signalapp/libsignal-service-java@c37cbf5 got merged I think this one should also be added, as I'm suffering from delayed message delivery, too.

@Diapolo
Copy link

Diapolo commented Aug 27, 2018

@dpapavas Is there anything I could to to improve the laggy message receive situation without this patch? Since upgrading to Oreo / LineageOS 15.1 it seems I have lags as big as 3 to 5 hours sometimes :-/.

@dpapavas
Copy link
Author

Well, you can wake the device from time to time, by turning on the screen. This would allow the various blocking sleeps to time out and then, depending on how sockets are handled by your device, either it will detect that your connection to the server is dead and respawn a socket and get any pending messages/receipts, or it might still take some time for that to happen. In the latter case force quitting and restarting Signal should help.

@dpapavas
Copy link
Author

Ping!

@Diapolo
Copy link

Diapolo commented Sep 13, 2018

I don't understand what prevents a merge of this pull, if the server-side bits have been mergerd already...

@greyson-signal
Copy link
Contributor

Apologies, this got lost while I was dealing with notification issues. I've made this part of #8204, since I had to upgrade the libsignal-service version for a separate change. Thank you!

@Diapolo
Copy link

Diapolo commented Sep 15, 2018

@greyson-signal Thank you so much, now I would love to see a new WebSocket release on the website in order to check this out 👍.

@dpapavas
Copy link
Author

Thanks for merging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Network connection seems to get stuck (without Google services) Messages can take hours to be received
4 participants