You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Charles E. Rolke (Jira)" <ji...@apache.org> on 2021/04/05 13:52:00 UTC
[jira] [Created] (PROTON-2366) [c] Raw connection event
DRAIN_BUFFERS never arrives
Charles E. Rolke created PROTON-2366:
----------------------------------------
Summary: [c] Raw connection event DRAIN_BUFFERS never arrives
Key: PROTON-2366
URL: https://issues.apache.org/jira/browse/PROTON-2366
Project: Qpid Proton
Issue Type: Bug
Components: proton-c
Environment: Host: Fedora 5.10.16-100.fc32.x86_64;
gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9)
Proton git branch main @ 9bf7b7078.
Dispatch git branch main @ 96182914 with patch shown in Description
cmake debug build
Reporter: Charles E. Rolke
Adding support for the drain buffers event in qpid-dispatch reveals that the event never arrives in any of the qpid-dispatch tcp self tests. Grepping the logs shows 178 CONNECTION_CONNECTED events and 178 CONNECTION_DISCONNECTED events but no DRAIN_BUFFERS events.
{code:java}
diff --git a/src/adaptors/tcp_adaptor.c b/src/adaptors/tcp_adaptor.c
index 884d0a73..09c0ca9b 100644
--- a/src/adaptors/tcp_adaptor.c
+++ b/src/adaptors/tcp_adaptor.c
@@ -705,6 +705,10 @@ static void handle_connection_event(pn_event_t *e, qd_server_t *qd_server, void
while (qdr_connection_process(conn->qdr_conn)) {}
break;
}
+ case PN_RAW_CONNECTION_DRAIN_BUFFERS: {
+ qd_log(log, QD_LOG_CRITICAL, "[C%"PRIu64"] PN_RAW_CONNECTION_DRAIN_BUFFERS Event: %d", conn->conn_id, pn_event_type(e));
+ break;
+ }
default:
qd_log(log, QD_LOG_DEBUG, "[C%"PRIu64"] Unexpected Event: %d", conn->conn_id, pn_event_type(e));
break;
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org