Fix client dispatcher queuing 10/114010/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 15 Oct 2024 19:04:07 +0000 (21:04 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 16 Oct 2024 07:01:10 +0000 (07:01 +0000)
commitf8dbade57b075ff0c3e357335ac07a06eccdbdc0
treefde5a0118a684f953fd153e4a1043c143ee17f4d
parent46628f9f92275ff05a5b9ecdceb8f7f027faf42a
Fix client dispatcher queuing

Future listeners are not delivered immediately upon write completion,
but rather at some time after.

This means we need to setup the queue before we send the request, so
that if we receive a response before the callback runs we do not get
into weird state.

JIRA: NETCONF-1406
Change-Id: I66e1911fd6db6843499f772827e7ae00fa3ff377
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
transport/transport-http/src/main/java/org/opendaylight/netconf/transport/http/ClientHttp1RequestDispatcher.java
transport/transport-http/src/main/java/org/opendaylight/netconf/transport/http/ClientHttp2RequestDispatcher.java