I\'m using retrofit 2 with rx-android
I have quite complex retry logic, which partially works. I cut off irrelevant code to simplify it. Here it is: