We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cac912e commit bdd0e9bCopy full SHA for bdd0e9b
lib/rExec.ml
@@ -215,10 +215,13 @@ let with_flow ~ty ~domid ~port fn =
215
Lwt.catch
216
(fun () ->
217
recv_hello client >>= function
218
- | version when version <> 2l -> fail (error "Unsupported qrexec version %ld" version)
219
- | _ ->
220
- send_hello client >|= fun () ->
221
- Flow.create ~ty client
+ | version when version < 2l -> fail (error "Unsupported qrexec version %ld" version)
+ | version ->
+ if version > 2l
+ then Log.debug (fun f -> f "Other end wants to use newer protocol %lu, \
222
+ continuing with version 2" version);
223
+ send_hello client >|= fun () ->
224
+ Flow.create ~ty client
225
)
226
(fun ex -> QV.disconnect client >>= fun () -> fail ex)
227
0 commit comments