[ https://issues.apache.org/jira/browse/PROTON-2673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704485#comment-17704485 ]
Clifford Jansen commented on PROTON-2673: ----------------------------------------- PN_RAW_CONNECTION_WAKE can now be the first event ahead of a successful connected event. The doc for pn_raw_connection_wake() has also been updated to clarify when it has defined results. The restrictions could be looser, along the lines of AMQP connections, but that would require extra locking unhelpful for the normal use case. If this is too restrictive for the application, this could be revisited. > Proactor hangs if pn_raw_connection_wake() is called with outstanding > connection attempt > ---------------------------------------------------------------------------------------- > > Key: PROTON-2673 > URL: https://issues.apache.org/jira/browse/PROTON-2673 > Project: Qpid Proton > Issue Type: Bug > Components: proton-c > Affects Versions: proton-c-0.38.0, proton-c-0.39.0 > Reporter: Ken Giusti > Assignee: Clifford Jansen > Priority: Major > Attachments: raw_wake.c > > > If pn_raw_connection_wake() is called on a raw connection that is attempting > to connect no further proactor events are generated and the proactor hangs. > Important observations: > * This only occurs {_}if there is no server available at the target address > for the connection{_}. If a server is present then the PN_RAW_CONNECTION_WAKE > and PN_RAW_CONNECTION_CONNECTED events arrive properly (in that order). > * The host address is "localhost" - using "127.0.0.1" or "::1" instead > works. localhost on my machine maps to both "127.0.0.1" and "::1" > * Extra bonus: if you move the call to pn_raw_connection_wake() to _before_ > the call to pn_proactor_raw_connect() a crash occurs > See attached reproducer. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org