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

#172 Mastodon Streaming中の通信切断のハンドリング #183

Merged
merged 3 commits into from
Oct 21, 2018

Conversation

shibafu528
Copy link
Owner

@shibafu528 shibafu528 commented Oct 21, 2018

#172 への対処をするにあたって、安定版のmastodon4jではStreaming中の通信切断がハンドルできず、強制終了する他ない状態でしたので、まずそちらに手を加えて私家版ビルドを作成しました。

shibafu528/mastodon4j@5b315eb

このPRでは、y4aが参照するmastodon4jを通信切断ハンドル可能な私家版に変更し、通信切断時はリトライを行う処理を組み込みました。
処理内容はTwitter4Jのものを参考にして、だんだんウェイト間隔を伸ばしながらリトライする方式を採っています。

@shibafu528 shibafu528 added this to the v2.1 milestone Oct 21, 2018
@shibafu528 shibafu528 merged commit fcaf1f7 into develop/2.1 Oct 21, 2018
@shibafu528 shibafu528 deleted the 172-reconnect-stream branch October 21, 2018 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant