signalapp / libsignal-service-java

A Java/Android library for communicating with the Signal messaging service.
GNU General Public License v3.0
587 stars 271 forks source link

Allow user to define keepalive time interval. #43

Open csdodd opened 7 years ago

csdodd commented 7 years ago

The keepalive interval is hardcoded to 55 seconds. This is the same as the connection timeout on Heroku (https://devcenter.heroku.com/articles/request-timeout#long-polling-and-streaming-responses).

This means that connections sometimes timeout unnecessarily because the keepalive intervals are too large. This PR allows a developer to set their own keepalive intervals.