[ 
https://issues.apache.org/jira/browse/QPID-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733846#action_12733846
 ] 

Steve Huston commented on QPID-1982:
------------------------------------

I have a sneaking suspicion this issue is related to QPID-1918 and its fix for 
PipeHandle (eventually the lights do come on). Is the QMF plug-in on the other 
end of the notify fd?

If so, then a workable short-term fix. combined with the PipeHandle fixes in 
QPID-1918, would be to change ResilientConnection's write() to send(). How does 
that look?

In any event, I think this is going to cause long-term issues, at least on 
Windows. Although selecting a socket fd is a very common way to do such a 
notify, it's probably going to be limiting in some use cases down the road. 
Caveat emptor.

> QMF ResilientConnection notifyFd feature portability
> ----------------------------------------------------
>
>                 Key: QPID-1982
>                 URL: https://issues.apache.org/jira/browse/QPID-1982
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Qpid Managment Framework
>    Affects Versions: 0.5
>         Environment: Windows
>            Reporter: Steve Huston
>
> The QMF's C++ qmfcommon ResilientConnection class has a setNotifyFd (int fd) 
> method. The docs say this can receive a file descriptor that is written on 
> when certain events take place, supposedly so the other end of the channel 
> can listen, select, etc. and be notified of some event.
> This construct isn't portable, both because of the datatype of the fd (int is 
> not necessarily a legit handle type everywhere) and because the code assumes 
> a write() will work. The code can be abstracted out to get rid of the write() 
> easily enough, but what is the usage for this facility? There are no calls to 
> setNotifyFd() that I can find outside of the library containing the 
> implementation. So I can't tell if this is something that can be replaced by 
> qpid::sys::PollableCondition or not.
> What is the use case for this, and how can we make this portable? Different 
> IPC type? Callback to some private hook?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to