Page MenuHomePhabricator

wireprotoserver: move SSH server operation to a standalone function
ClosedPublic

Authored by indygreg on Feb 12 2018, 7:46 PM.

Details

Summary

The server-side processing logic will soon get a bit more complicated
in order to handle protocol switches. We will use a state machine
to help make the transitions clearer.

To prepare for this, we move SSH server operation into a standalone
function. We structure it as a very simple state machine. It only
has two states for now, with one state containing the bulk of the
logic. But things will evolve shortly.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Feb 12 2018, 7:46 PM
durin42 accepted this revision.Feb 14 2018, 8:49 PM
durin42 added a subscriber: durin42.

LGTM, but needs rebased

This revision is now accepted and ready to land.Feb 14 2018, 8:49 PM
This revision was automatically updated to reflect the committed changes.