Prior to D10952, the code in call-single-keyserver-endpoint.js would handle dispatching SET_NEW_SESSION for a failed session recovery.
In that diff, I changed that behavior. The reason was that we can have multiple simultaneous callSingleKeyserverEndpoint calls. Even if they trigger only a single session recovery, when that session recovery fails it would result in multiple SET_NEW_SESSION actions, since they will be dispatched by multiple callSingleKeyserverEndpoint calls.
Now that callSingleKeyserverEndpoint isn't handling SET_NEW_SESSION for failed session recoveries, we need to handle it elsewhere. The KeyserverConnectionHandler is the right place, since it is where we handle the session recovery, and we are able to ensure that only a single session recovery is running for a particular keyserver at one time.
I considered leaving the setSessionRecoveryInProgressActionType calls there, but decided against it because it's bad Redux practice to dispatch two actions in a row, instead of having a single action handle everything. In order for the SET_NEW_SESSION call to handle flipping sessionRecoveryInProgress, I made some changes to D10949.
I decided to make this a separate diff (instead of including it in D10954) because there are some substantial changes here. I will annotate them inline.
Depends on D10954