wip: refactor protocol handling

2 jobs for client-proto-fix in 1 minute and 21 seconds (queued for 4 seconds)
latest
Status Name Job ID Coverage
  Test
passed flake8 #465575

00:00:50

passed test_python3 #465576

00:01:21