Skip to content

Commit

Permalink
Fixes skupperproject#1294: Disable Q2 in legacy TCP adaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti committed Nov 10, 2023
1 parent 720e29e commit 35ec1d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/adaptors/tcp/tcp_adaptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ static int handle_incoming(qdr_tcp_connection_t *conn, const char *msg)
qd_message_t *msg = qd_message();

qd_message_set_streaming_annotation(msg);
qd_message_set_Q2_disabled_annotation(msg);

qd_composed_field_t *props = qd_compose(QD_PERFORMATIVE_PROPERTIES, 0);
qd_compose_start_list(props);
Expand Down Expand Up @@ -1972,8 +1973,6 @@ static uint64_t qdr_tcp_deliver(void *context, qdr_link_t *link, qdr_delivery_t
{
qd_message_t *msg = qdr_delivery_message(delivery);

// @TODO(kgiusti): determine why this is necessary to prevent window full stall:
qd_message_Q2_holdoff_disable(msg);
void* link_context = qdr_link_get_context(link);
if (link_context) {
qdr_tcp_connection_t* tc = (qdr_tcp_connection_t*) link_context;
Expand Down
3 changes: 1 addition & 2 deletions tests/system_tests_tcp_adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,6 @@ def __init__(self, msg, server_address, listener_address, service_address, dispo
# listener. This initiates the ingress streaming request message.
self.listener_address = listener_address
self.client_conn = None
self.client_sent = False

def done(self, error=None):
self.error = error
Expand All @@ -2452,7 +2451,7 @@ def done(self, error=None):

def timeout(self):
self.timer = None
self.done(error=f"Timeout Expired: sent={self.sent}")
self.done(error=f"Timeout Expired: server_sent={self.server_sent}")

def on_start(self, event):
# Create an AMQP receiver for the service address. This will simulate a
Expand Down

0 comments on commit 35ec1d3

Please sign in to comment.