Re: Amqp-ConnProp: user-agent

2016-04-05 Thread Justin Ross
Here's something related.  It doesn't amount to a recommendation yet, but
it shows you what some of the brokers are doing.

https://cwiki.apache.org/confluence/display/qpid/AMQP+connection+properties

Previous discussion in this area:

http://qpid.2158936.n2.nabble.com/AMQP-1-0-connection-property-names-td7608091.html

http://qpid.2158936.n2.nabble.com/AMQP-1-0-connection-property-names-td7608236.html

Justin

On Tue, Apr 5, 2016 at 10:22 AM, Garlapati Sreeram Kumar 
wrote:

> Can you please point me to those Symbols. I would love to not re-invent &
> reuse those …
>
> Thx!
> Sree
>
> From: Robbie Gemmell
> Sent: Tuesday, April 5, 2016 10:14 AM
> To: proton@qpid.apache.org
> Subject: Re: Amqp-ConnProp: user-agent
>
> Many of the Qpid components advertise "product" and "version"
> connection properties containing strings with the appropriate details.
> Those [Symbol] keys were chosen because they happened to be names
> specified in the older AMQP 0-x specs, and so matched what some of the
> components were already using.
>
> Robbie
>
> On 5 April 2016 at 18:02, Garlapati Sreeram Kumar 
> wrote:
> > Hello Folks!
> >
> > In our (Microsoft Azure EventHubs) java library, we are looking for a
> way to identify which AmqpClient did the call originate from.
> > We want to use this information to:
> > 1) Identify client stack while troubleshooting Service issues - for ex:
> a bug in implementation of AmqpProtocol stack
> > 2) collect telemetry on how many different clients are talking to our
> service (which will open-up data insights in future, for ex: investing our
> efforts on the right client echo system etc.,)
> >
> > To achieve this - we are planning to introduce a Property (on
> AmqpConnection -  [AMQP-CONNPROP]) to identify UserAgent.
> > - We chose “Connection properties” – as this would be one-time per
> connection and will not add extra overhead per message.
> >
> > I believe this would be a common requirement to all Amqp
> implementations. Are you folks aware of any proposal to add a standard
> property to Amqp Protocol Specification (or) is there already one that you
> folks use for this purpose – in any of the Clients – which we can re-use
> and collectively propose to the protocol spec.
> >
> > Thanks a lot for the Wonderful collaboration!
> > Sree
>


Re: [VOTE] merge the proton mailing list into the users/dev lists

2016-03-30 Thread Justin Ross
+1

On Wed, Mar 30, 2016 at 5:17 AM, Chuck Rolke  wrote:

> +1
>
> - Original Message -
> > From: "Robbie Gemmell" 
> > To: us...@qpid.apache.org, proton@qpid.apache.org
> > Sent: Wednesday, March 30, 2016 6:25:34 AM
> > Subject: [VOTE] merge the proton mailing list into the users/dev lists
> >
> > Hello folks,
> >
> > Many moons ago, a seperate mailing list was established for Proton,
> > back when it was purely a protocol engine other components would use.
> > Its scope has since expanded beyond that and the separate mailing list
> > has I feel been an increasing source of confusion and hassle of late
> > more than anything else. Collapsing it into the other larger existing
> > lists we have (that the traffic would otherwise have been on) seems to
> > me like it would be an improvement across the board, and as such I
> > have called this vote.
> >
> > I would propose that discussion (such as this) would head to the
> > users@q.a.o list to join the similar/related/duplicate traffic already
> > present, with remaining things going to the dev@q.a.o list as
> > consistent with that list (e.g JIRA, GitHub integration mails,
> > ReviewBoard, though the latter was never actually directed to proton@
> > to begin with..).
> >
> > Whilst redirecting JIRA etc emails should be easy enough (has been
> > done before), I dont know what the precise options are regarding
> > existing mail subscriptions to the list. There are significantly more
> > subscribers to users@ than proton@, and many are duplicates, but some
> > are not. I'd need to discuss options with infra, but first things
> > first, the vote.
> >
> > I have gone straight to a vote on this because I feel this has already
> > been discussed enough previously over time that many people will have
> > already thought about it enough to quickly vote one way or the other,
> > and it is past time to act on it if things head that way. Obviously
> > things can be further discusssed at this point also if desired.
> >
> > Note that both users@ and proton@ are in the recipients. I expect the
> > thread will splinter when someone forgets to reply-all, as almost all
> > cross-posted thread on the lists do, but at least it can start on both
> > for visibility to all.
> >
> > Robbie
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>
>


Re: Does anyone read this list?

2016-03-24 Thread Justin Ross
I support making that change.  It's now on my site update todo list.

On Thu, Mar 24, 2016 at 2:29 PM, Alan Conway  wrote:

> On Thu, 2016-03-24 at 18:23 +, Troy Daniels wrote:
> > This was also the only mailing list that I found a reference to when
> > I was
> > looking at the proton site.  Which makes me agree that you (or at
> > least
> > the documentation) are trying to recruit developers rather than
> > users. :-)
>
> It is a historical accident I think. The Qpid project has a lot of
> interesting and inter-related things going on around AMQP. Proton is an
> important sub-project but not the only one. In the early days it was
> felt by some that proton really needed its own list, but I think in
> practice that has turned out to be a bad idea that just isolates and
> breaks up discussions. The user list is not so heavily trafficked and
> most interesting discussions that touch on proton also touch on other
> Qpid projects. So I generally post to the user list but I keep an eye
> on this one.
>
> I'd change the reference on the site if I wasn't afeared of a
> firestorm. Anyone who objects please complain on the proton list only
> ;)
>


[ANNOUNCE] Apache Qpid Proton 0.12.1 released

2016-03-23 Thread Justin Ross
The Apache Qpid community is pleased to announce the immediate
availability of Apache Qpid Proton 0.12.1.

Qpid Proton is an AMQP 1.0 messaging library. It can be used in a wide
range of messaging applications including brokers, clients, routers,
bridges, proxies, and more.

This release addresses CVE-2016-2166, a vulnerability in the Qpid
Proton Python binding.  Release notes are available at:

http://qpid.apache.org/releases/qpid-proton-0.12.1/release-notes.html

The release is available now from our website:

http://qpid.apache.org/download.html

Proton-J is also available via Maven Central:

http://qpid.apache.org/maven.html

Thanks to all the users and contributors who have helped to improve
Apache Qpid Proton.


[jira] [Closed] (PROTON-1157) Reactor sends messages in the clear if ssl is requested but not available.

2016-03-23 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-1157.
---

Released in Qpid Proton 0.12.1, 
http://qpid.apache.org/releases/qpid-proton-0.12.1/index.html

> Reactor sends messages in the clear if ssl is requested but not available.
> --
>
> Key: PROTON-1157
> URL: https://issues.apache.org/jira/browse/PROTON-1157
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>Priority: Blocker
> Fix For: 0.12.1
>
>
> See 
> https://github.com/apache/qpid-proton/blob/master/proton-c/bindings/python/proton/reactor.py#L529
> If 'amqps:' is specified and the SSL libraries are not available the client 
> will use an unsecured connection instead.  This is done silently so the user 
> is not aware of the security violation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1157) Reactor sends messages in the clear if ssl is requested but not available.

2016-03-22 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1157:

Summary: Reactor sends messages in the clear if ssl is requested but not 
available.  (was: Reactor sends messages in the clear if ssl is requested by 
not available.)

> Reactor sends messages in the clear if ssl is requested but not available.
> --
>
> Key: PROTON-1157
> URL: https://issues.apache.org/jira/browse/PROTON-1157
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>Priority: Blocker
> Fix For: 0.12.1
>
>
> See 
> https://github.com/apache/qpid-proton/blob/master/proton-c/bindings/python/proton/reactor.py#L529
> If 'amqps:' is specified and the SSL libraries are not available the client 
> will use an unsecured connection instead.  This is done silently so the user 
> is not aware of the security violation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1157) Reactor sends messages in the clear if ssl is requested by not available.

2016-03-22 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1157:

Fix Version/s: 0.12.1

> Reactor sends messages in the clear if ssl is requested by not available.
> -
>
> Key: PROTON-1157
> URL: https://issues.apache.org/jira/browse/PROTON-1157
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>Priority: Blocker
> Fix For: 0.12.1
>
>
> See 
> https://github.com/apache/qpid-proton/blob/master/proton-c/bindings/python/proton/reactor.py#L529
> If 'amqps:' is specified and the SSL libraries are not available the client 
> will use an unsecured connection instead.  This is done silently so the user 
> is not aware of the security violation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1157) Reactor sends messages in the clear if ssl is requested by not available.

2016-03-22 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1157:

Fix Version/s: (was: 0.13.0)

> Reactor sends messages in the clear if ssl is requested by not available.
> -
>
> Key: PROTON-1157
> URL: https://issues.apache.org/jira/browse/PROTON-1157
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>Priority: Blocker
>
> See 
> https://github.com/apache/qpid-proton/blob/master/proton-c/bindings/python/proton/reactor.py#L529
> If 'amqps:' is specified and the SSL libraries are not available the client 
> will use an unsecured connection instead.  This is done silently so the user 
> is not aware of the security violation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1157) Reactor sends messages in the clear if ssl is requested by not available.

2016-03-09 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1157:

Assignee: Gordon Sim

> Reactor sends messages in the clear if ssl is requested by not available.
> -
>
> Key: PROTON-1157
> URL: https://issues.apache.org/jira/browse/PROTON-1157
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Gordon Sim
>Priority: Blocker
> Fix For: 0.13.0
>
>
> See 
> https://github.com/apache/qpid-proton/blob/master/proton-c/bindings/python/proton/reactor.py#L529
> If 'amqps:' is specified and the SSL libraries are not available the client 
> will use an unsecured connection instead.  This is done silently so the user 
> is not aware of the security violation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1061) [Python Binding] Add support for all AMQP 1.0 types

2016-03-03 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15177976#comment-15177976
 ] 

Justin Ross commented on PROTON-1061:
-

[~kpvdr], what's the status of this?

> [Python Binding] Add support for all AMQP 1.0 types
> ---
>
> Key: PROTON-1061
> URL: https://issues.apache.org/jira/browse/PROTON-1061
> Project: Qpid Proton
>  Issue Type: Task
>  Components: python-binding
>Reporter: Kim van der Riet
>Assignee: Kim van der Riet
>
> Currently, a number of AMQP 1.0 simple types are not supported in the Python 
> binding. Only those types that "make sense" from a Python language 
> point-of-view are currently supported, but types such as the unsigned 
> integral types, 32-bit float and the decimal types are not supported.  As 
> long as the Python client only talks to other Python clients, this approach 
> makes sense, but as soon as a Python client needs to talk to some other 
> client that may require these types, then an impasse is reached.
> The AMQP types currently *NOT* supported in the Python binding are:
> * Byte
> * Short
> * Int (32-bit)
> * Ubyte
> * Ushort
> * Uint (32-bit)
> * Float (32-bit)
> * Decimal32
> * Decimal64
> * Decimal128
> A proposed patch is available for review at 
> https://reviews.apache.org/r/39479/.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Need Help! qpid-cofig: No module named qpid.messaging

2016-02-22 Thread Justin Ross
This is controlled via the standard python search paths.  IOW, set
PYTHONPATH to the location of the libraries you want to see used.

On Mon, Feb 22, 2016 at 8:39 AM, Flores, Paul A. 
wrote:

> I have found one culprit that is contributing to this issue.
>
> My development environment is a VirtualBox Centos 5.11 environment
> (clients choice) that has Python2.4 installed as the primary Python version
> . I am using an alternative install of Python 2.6.8.
>
> The install of the Python has seemed to place critical elements into
> Python 2.4 related folders not in my PATH.
>
> Is it possible to setup the QPID Python version so that it points at an
> alternative Python install?
>
> 
> From: Jakub Scholz [ja...@scholz.cz]
> Sent: Monday, February 22, 2016 10:22 AM
> To: proton@qpid.apache.org
> Subject: Re: Need Help! qpid-cofig: No module named qpid.messaging
>
> I think you need to download and install the Python version of the Qpid
> Messaging API. You can download it for example here
> http://qpid.apache.org/components/messaging-api/index.html or on
> http://qpid.apache.org/download.html. If you don't want to install it into
> the system directories, it should be enough if you copy the mllib and qpid
> directories next to your qpid-config.
>
> On Mon, Feb 22, 2016 at 4:40 PM, Flores, Paul A. 
> wrote:
>
> > Help!
> >
> >
> >
> > All the I can find when I Google on this messaging I am getting is dated
> > 2010.  It references a QMF extras folder that does not exist.
> >
> >
> >
> > Surely there has to be some updated guidance to this issue?
> >
> >
> >
> > This is "blocking" my current sprint progress!
> >
>


Re: Need Help! qpid-cofig: No module named qpid.messaging

2016-02-22 Thread Justin Ross
Adding to what Jakub said, from the source distribution, you can use
"./setup.py install --user" and set your paths to use standard user-local
python locations.  OS packages are easier if the versions work for you.


On Mon, Feb 22, 2016 at 8:22 AM, Jakub Scholz  wrote:

> I think you need to download and install the Python version of the Qpid
> Messaging API. You can download it for example here
> http://qpid.apache.org/components/messaging-api/index.html or on
> http://qpid.apache.org/download.html. If you don't want to install it into
> the system directories, it should be enough if you copy the mllib and qpid
> directories next to your qpid-config.
>
> On Mon, Feb 22, 2016 at 4:40 PM, Flores, Paul A. 
> wrote:
>
> > Help!
> >
> >
> >
> > All the I can find when I Google on this messaging I am getting is dated
> > 2010.  It references a QMF extras folder that does not exist.
> >
> >
> >
> > Surely there has to be some updated guidance to this issue?
> >
> >
> >
> > This is "blocking" my current sprint progress!
> >
>


[jira] [Created] (PROTON-1138) Assorted C++ API cleanups

2016-02-17 Thread Justin Ross (JIRA)
Justin Ross created PROTON-1138:
---

 Summary: Assorted C++ API cleanups
 Key: PROTON-1138
 URL: https://issues.apache.org/jira/browse/PROTON-1138
 Project: Qpid Proton
  Issue Type: Improvement
  Components: cpp-binding
Affects Versions: 0.13.0
Reporter: Justin Ross
Assignee: Cliff Jansen
 Fix For: 0.13.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (PROTON-1138) Assorted C++ API cleanups

2016-02-17 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross reassigned PROTON-1138:
---

Assignee: Justin Ross  (was: Cliff Jansen)

> Assorted C++ API cleanups
> -
>
> Key: PROTON-1138
> URL: https://issues.apache.org/jira/browse/PROTON-1138
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: cpp-binding
>Affects Versions: 0.13.0
>    Reporter: Justin Ross
>Assignee: Justin Ross
> Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1134) 0.13.0 release tasks

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1134:

Fix Version/s: (was: 0.12.0)
   0.13.0

> 0.13.0 release tasks
> 
>
> Key: PROTON-1134
> URL: https://issues.apache.org/jira/browse/PROTON-1134
> Project: Qpid Proton
>  Issue Type: Task
>  Components: release
>    Reporter: Justin Ross
>    Assignee: Justin Ross
> Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (PROTON-1134) 0.13.0 release tasks

2016-02-16 Thread Justin Ross (JIRA)
Justin Ross created PROTON-1134:
---

 Summary: 0.13.0 release tasks
 Key: PROTON-1134
 URL: https://issues.apache.org/jira/browse/PROTON-1134
 Project: Qpid Proton
  Issue Type: Task
  Components: release
Reporter: Justin Ross
Assignee: Justin Ross
 Fix For: 0.12.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (PROTON-1050) 0.12.0 release tasks

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-1050.
---
Resolution: Fixed

Proton 0.12.0 is released.

> 0.12.0 release tasks
> 
>
> Key: PROTON-1050
> URL: https://issues.apache.org/jira/browse/PROTON-1050
> Project: Qpid Proton
>  Issue Type: Task
>  Components: release
>    Reporter: Justin Ross
>    Assignee: Justin Ross
> Fix For: 0.12.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1099) Upload latest stable release of python-qpid-proton onto pypi

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1099:

Fix Version/s: (was: 0.12.0)

> Upload latest stable release of python-qpid-proton onto pypi
> 
>
> Key: PROTON-1099
> URL: https://issues.apache.org/jira/browse/PROTON-1099
> Project: Qpid Proton
>  Issue Type: Task
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>
> A reminder to update Pypi when a new release of proton is available.
> I'll move the fix version forward as releases are completed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1095) Error handling

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1095:

Fix Version/s: (was: 0.13.0)

> Error handling
> --
>
> Key: PROTON-1095
> URL: https://issues.apache.org/jira/browse/PROTON-1095
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: cpp-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
> Fix For: 0.12.0
>
>
> The C++ binding needs a disciplined and effective way to handle protocol (and 
> transport) errors.
> Currently the API has some error events, however if they are not handled the 
> program will just hang - it would be better in this case to throw an 
> exception so that the program doesn't just hang.
> Another issue is creating error states (attaching a condition) when closing a 
> connection/session/link - there should be some straightforward way to 
> indicate the error to your peer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1055) Username sent twice during SASL AUTH

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1055:

Fix Version/s: (was: 0.13.0)

> Username sent twice during SASL AUTH
> 
>
> Key: PROTON-1055
> URL: https://issues.apache.org/jira/browse/PROTON-1055
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c, python-binding
>Affects Versions: 0.10
> Environment: # lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:Ubuntu 14.04.3 LTS
> Release:14.04
> Codename:   trusty
> # uname -a
> Linux esb-test-mq01 3.13.0-67-generic #110-Ubuntu SMP Fri Oct 23 13:24:41 UTC 
> 2015 x86_64 x86_64 x86_64 GNU/Linux
> # python --version
> Python 2.7.6
>Reporter: Simon Lundstrom
>Assignee: Andrew Stitcher
> Fix For: 0.12.0
>
>
> In versions >0.9.1.1 (We've tried 0.10 and 0.11.0) the username is sent twice 
> during SASL authentication.
> Working in 0.9.1.1:
> {code}
> # PN_TRACE_FRM=1 ./meow.py
> [0x250d3b0]:  -> SASL
> [0x250d3b0]:0 -> @sasl-init(65) [mechanism=:PLAIN, 
> initial-response=b"\x00the_username\x00the_password"]
> [0x250d3b0]:  <- SASL
> [0x250d3b0]:0 <- @sasl-mechanisms(64) 
> [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
> [0x250d3b0]:0 <- @sasl-outcome(68) [code=0]
> [0x250d3b0]:  -> AMQP
> [0x250d3b0]:0 -> @open(16) 
> [container-id="6b1fecb6-358e-48af-b461-bae3563a7c7f", hostname="esb-test"]
> [0x250d3b0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, 
> outgoing-window=1]
> [0x250d3b0]:0 -> @attach(18) [name="sender-xxx", handle=0, role=false, 
> snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) 
> [address="TEST-queue", durable=0, timeout=0, dynamic=false], 
> target=@target(41) [address="TEST-queue", durable=0, timeout=0, 
> dynamic=false], initial-delivery-count=0]
> [0x250d3b0]:  <- AMQP
> [0x250d3b0]:0 <- @open(16) [container-id="", hostname="", 
> max-frame-size=4294967295, channel-max=32767, idle-time-out=15000, 
> offered-capabilities=@PN_SYMBOL[:"ANONYMOUS-RELAY"], 
> properties={:product="ActiveMQ", :"topic-prefix"="topic://", 
> :"queue-prefix"="queue://", :version="5.12.1", :platform="Java/1.8.0_45"}]
> [0x250d3b0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=1, 
> incoming-window=0, outgoing-window=0, handle-max=65535]
> [0x250d3b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, 
> next-outgoing-id=1, outgoing-window=0]
> [0x250d3b0]:0 <- @attach(18) [name="sender-xxx", handle=0, role=true, 
> snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) 
> [address="TEST-queue"], target=@target(41) [address="TEST-queue"]]
> [0x250d3b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, 
> next-outgoing-id=1, outgoing-window=0, handle=0, delivery-count=0, 
> link-credit=1000]
> [0x250d3b0]:0 -> @transfer(20) [handle=0, delivery-id=0, 
> delivery-tag=b"\x00\x00\x00\x00\x00\x00\x00\x00", message-format=0, 
> settled=true, more=false] (131) "\x00[…]"
> #
> {code}
> Not working in >0.9.1.1:
> {code}
> # PN_TRACE_FRM=1 ./meow.py
> [0x18aa060]:  -> SASL
> [0x18aa060]:  <- SASL
> [0x18aa060]:0 <- @sasl-mechanisms(64) 
> [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
> [0x18aa060]:0 -> @sasl-init(65) [mechanism=:PLAIN, 
> initial-response=b"the_username\x00the_username\x00the_password"]
> [0x18aa060]:0 <- @sasl-outcome(68) [code=1]
> [0x18aa060]:  -> EOS
> #
> {code}
> When using >0.9.1.1 and using SSL it does the same BUT then just hangs. 
> Should we open a seperate Jira for this?:
> {code}
> # PN_TRACE_FRM=1 time ./meow.py
> [0xa5d060]:  -> SASL
> [0xa5d060]:  <- SASL
> [0xa5d060]:0 <- @sasl-mechanisms(64) 
> [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
> [0xa5d060]:0 -> @sasl-init(65) [mechanism=:PLAIN, 
> initial-response=b"the_username\x00the_username\x00the_password"]
> [0xa5d060]:0 <- @sasl-outcome(68) [code=1]
> ^CTraceback (most recent call last):
>   File "./meow.py", line 12, in 
> messenger.send()
>   File "/usr/local/lib/python2.7/dist-packages/proton/__init__.py", line 568, 
> in send
> self._check(pn_messenger_send(self._mng, n))
> KeyboardInterrupt
> Command exited with non-zero status 1
> 0.08user 0.02system 0:50.69elapsed 0%CPU (0avgtext+0avgdata 12192maxresident)k
> 0inputs+0outputs (0major+5474minor)pagefaults 0swaps
> #
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1123) cmake fails under python3 when -DSYSINSTALL_BINDINGS=ON

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1123:

Fix Version/s: (was: 0.13.0)

> cmake fails under python3 when -DSYSINSTALL_BINDINGS=ON
> ---
>
> Key: PROTON-1123
> URL: https://issues.apache.org/jira/browse/PROTON-1123
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>  Labels: build-failure
> Fix For: 0.12.0
>
>
> The following syntax error is raised:
> -- Found Doxygen: /usr/bin/doxygen (found version "1.8.10") 
>   File "", line 1
> from distutils.sysconfig import get_python_lib; print get_python_lib(True)
>^
> SyntaxError: invalid syntax
> In python3 print is a function and requires parenthesis.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1118) python setup.py build fails if run from git repo

2016-02-16 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1118:

Fix Version/s: (was: 0.13.0)

> python setup.py build fails if run from git repo
> 
>
> Key: PROTON-1118
> URL: https://issues.apache.org/jira/browse/PROTON-1118
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>  Labels: build-failure
> Fix For: 0.12.0
>
>
> If setup.py is run from the proton-c/bindings/proton directory, it should 
> build the local python bindings.  Instead it tries to download the 
> distribution from the Apache servers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1063) ruby: ruby reactor holds GVL in process

2016-02-15 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1063:

Fix Version/s: (was: 0.12.0)
   0.13.0

> ruby: ruby reactor holds GVL in process
> ---
>
> Key: PROTON-1063
> URL: https://issues.apache.org/jira/browse/PROTON-1063
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: ruby-binding
>Affects Versions: 0.10
>Reporter: Alan Conway
>Assignee: Alan Conway
> Fix For: 0.13.0
>
>
> Ruby has a global lock the GVL, like python's GIL.
> The ruby binding Reactor#process blocks in pn_reactor_process while holding 
> the lock, blocking all other ruby threads.
> This is the same issue as PROTON-752, but it was only fixed for messenger, 
> not for the reactor.
> The fix is more complex, we can't simply call pn_reactor_process in 
> rb_thread_call_without_gvl() because it calls handler functions that call 
> back into ruby. We need to isolate just the blocking IO code in without_gvl 
> and restore the lock before handlers call back into ruby.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[RESULT][VOTE] Release RC 3 as Qpid Proton 0.12.0

2016-02-15 Thread Justin Ross
http://qpid.2158936.n2.nabble.com/VOTE-Release-RC-3-as-Qpid-Proton-0-12-0-td7638133.html
http://qpid.2158936.n2.nabble.com/VOTE-Release-RC-3-as-Qpid-Proton-0-12-0-td7638134.html

The vote passes with 9 in favor (7 binding) and none against.

Proton 0.12.0 is approved for release.

Justin


Re: [VOTE] Release RC 3 as Qpid Proton 0.12.0

2016-02-10 Thread Justin Ross
The RC 3 maven repo:

https://repository.apache.org/content/repositories/orgapacheqpid-1063

On Wed, Feb 10, 2016 at 6:04 AM, Justin Ross <justin.r...@gmail.com> wrote:

> Hi, everyone.  RC 2 had some embedded build output, which this RC
> removes.  Apart from that removal, it has the same content as RC 2.
>
> The proposed release artifacts:
>
> https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc3/
>
> Please indicate your vote below.  If you favor releasing the 0.12.0 RC 3
> bits as 0.12.0 GA, vote +1.  If you have reason to think RC 3 is not
> ready for release, vote -1.
>
> Thanks,
> Justin
>


[VOTE] Release RC 3 as Qpid Proton 0.12.0

2016-02-10 Thread Justin Ross
Hi, everyone.  RC 2 had some embedded build output, which this RC removes.
Apart from that removal, it has the same content as RC 2.

The proposed release artifacts:

https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc3/

Please indicate your vote below.  If you favor releasing the 0.12.0 RC 3
bits as 0.12.0 GA, vote +1.  If you have reason to think RC 3 is not
ready for release, vote -1.

Thanks,
Justin


Proton 0.12.0 release update - RC 2 is available

2016-02-09 Thread Justin Ross
RC 2 source distribution:

https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc2/

Maven staging repo:

https://repository.apache.org/content/repositories/orgapacheqpid-1062

RC 2 contains two changes versus the first RC:

commit fda572f4088c5dc25be77ce6dbf847fba99a396f
Author: Andrew Stitcher 
Date:   Thu Feb 4 13:05:35 2016 -0500

PROTON-1127: [C++ binding] Install qpid-proton-cpp.dll

commit 0096245daff495a787ec7b03ad63989a54a65f0c
Author: Alan Conway 
Date:   Tue Feb 2 21:17:34 2016 -0500

PROTON-1125: c++: Fix core dump on empty address in link_options,
discovered by coverity.

I will open a new vote in a moment.

Thanks!
Justin

---
Proton 0.12.0 release page:
https://cwiki.apache.org/confluence/display/qpid/Qpid+Proton+0.12.0


[VOTE] Release RC 2 as Qpid Proton 0.12.0

2016-02-09 Thread Justin Ross
The artifacts proposed for release:

https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc2/

Please indicate your vote below.  If you favor releasing the 0.12.0 RC 2
bits as 0.12.0 GA, vote +1.  If you have reason to think the RC is not
ready for release, vote -1.

Thanks,
Justin


Re: [VOTE] Release Qpid Proton 0.12.0

2016-02-08 Thread Justin Ross
An update.  I'm going to respin today to get Andrew's fix, and then I'll
raise a new vote.

Justin

On Thu, Feb 4, 2016 at 3:17 PM, Chuck Rolke <cro...@redhat.com> wrote:

> Well spotted, Andrew.
>
> proton-c/bindings/cpp/CMakeLists.txt install target qpid-proton-cpp needs
> RUNTIME DESTINATION
>
>  install(TARGETS qpid-proton-cpp
>EXPORT  proton
>ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
>LIBRARY DESTINATION ${LIB_INSTALL_DIR}
> +  RUNTIME DESTINATION bin )
>
> That puts the cpp DLLs in the install/bin folder
>
> -C
>
> - Original Message -
> > From: "Andrew Stitcher" <astitc...@redhat.com>
> > To: proton@qpid.apache.org, us...@qpid.apache.org
> > Sent: Thursday, February 4, 2016 2:31:36 PM
> > Subject: Re: [VOTE] Release Qpid Proton 0.12.0
> >
> > On Wed, 2016-02-03 at 07:10 -0800, Justin Ross wrote:
> > > The artifacts proposed for release:
> > >
> > > https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc/
> > >
> > > Please indicate your vote below.  If you favor releasing the 0.12.0
> > > RC bits
> > > as 0.12.0 GA, vote +1.  If you have reason to think the RC is not
> > > ready for
> > > release, vote -1.
> >
> > -1
> >
> > On windows the C++ binding library does not get installed on "make
> > install" [1]. As the C++ binding is one of the big features for 0.12 I
> > think we should respin to fix this.
> >
> > Andrew
> >
> > [1] https://issues.apache.org/jira/browse/PROTON-1127
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> > For additional commands, e-mail: users-h...@qpid.apache.org
> >
> >
>


[jira] [Commented] (PROTON-1127) [Windows] qpid-proton-cpp.dll not installed by "make install" target

2016-02-05 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15134498#comment-15134498
 ] 

Justin Ross commented on PROTON-1127:
-

Reviewed by Chuck.  Approved for 0.12.0.

> [Windows] qpid-proton-cpp.dll not installed by "make install" target
> 
>
> Key: PROTON-1127
> URL: https://issues.apache.org/jira/browse/PROTON-1127
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: cpp-binding
>Affects Versions: 0.12.0
> Environment: Windows MSVC
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
> Fix For: 0.12.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Proton 0.12.0 release update - RC is available

2016-02-03 Thread Justin Ross
The release candidate is now available:

https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc/

Maven staging repo:

https://repository.apache.org/content/repositories/orgapacheqpid-1061

Test output on Fedora 23 x86-64:

http://people.apache.org/~jross/qpid-releases/quirk-proton-0.12.0-rc.log

The artifacts are in final form and signed.  If we approve this RC for
release, these RC bits will become the GA bits.

I will wait until Monday the 8th to start the vote, in case we discover any
important problems and need to plan another RC.

Thanks!
Justin

---
Proton 0.12.0 release page:
https://cwiki.apache.org/confluence/display/qpid/Qpid+Proton+0.12.0


Re: Proton 0.12.0 release update - RC is available

2016-02-03 Thread Justin Ross
On Wed, Feb 3, 2016 at 5:47 AM, Justin Ross <justin.r...@gmail.com> wrote:

> I will wait until Monday the 8th to start the vote, in case we discover
> any important problems and need to plan another RC.
>

Robbie suggested I may as well start the vote now.  Incoming.


[VOTE] Release Qpid Proton 0.12.0

2016-02-03 Thread Justin Ross
The artifacts proposed for release:

https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-rc/

Please indicate your vote below.  If you favor releasing the 0.12.0 RC bits
as 0.12.0 GA, vote +1.  If you have reason to think the RC is not ready for
release, vote -1.

Thanks,
Justin


[jira] [Commented] (PROTON-1121) Zero pointer derefence in pn_sasl_allowed_mechs()

2016-02-02 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15129163#comment-15129163
 ] 

Justin Ross commented on PROTON-1121:
-

Reviewed by Ken.  Approved for 0.12.0.

> Zero pointer derefence in pn_sasl_allowed_mechs()
> -
>
> Key: PROTON-1121
> URL: https://issues.apache.org/jira/browse/PROTON-1121
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.10
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>  Labels: coverity, crash
> Fix For: 0.13.0
>
>
> Coverity detected a potential derefence of a null string pointer in 
> pn_sasl_allowed_mechs().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1116) Potential infinite recursion detected by VC++14 compiler

2016-02-02 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15129160#comment-15129160
 ] 

Justin Ross commented on PROTON-1116:
-

Reviewed by Andrew.  Approved for 0.12.0.

> Potential infinite recursion detected by VC++14 compiler
> 
>
> Key: PROTON-1116
> URL: https://issues.apache.org/jira/browse/PROTON-1116
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: cpp-binding
>Affects Versions: 0.12.0
> Environment: Visual Studio 2015 Update 1, Visual Studio 2010
>Reporter: Andrew Stitcher
>Assignee: Alan Conway
>Priority: Blocker
>
> I get the following warning when  running the Visual Studio 2015 compiler on 
> the C++ binding code
> {noformat}
> 29>c:\users\andrew\documents\github\qpid-proton\proton-c\bindings\cpp\include\proton\value.hpp(49):
>  warning C4717: 
> 'proton::value::value<std::pair<std::basic_string<char,std::char_traits,std::allocator
>  >,proton::value> >': recursive on all control paths, function will cause 
> runtime stack overflow
> {noformat}
> My guess is that we never actually try to run this code in the tests or e 
> would indeed by seeing a failure, however I think we must eliminate this as a 
> bug before releasing 0.12.
> Either remove the code so removing the warning (as the code seems like it 
> can't have been called in testing) or fix the code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1125) c++: core dump on empty address in link options

2016-02-02 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15129657#comment-15129657
 ] 

Justin Ross commented on PROTON-1125:
-

Reviewed by me.  Approved for 0.12.0.

> c++: core dump on empty address in link options
> ---
>
> Key: PROTON-1125
> URL: https://issues.apache.org/jira/browse/PROTON-1125
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: cpp-binding
>Affects Versions: 0.11.1
>Reporter: Alan Conway
>Assignee: Alan Conway
>Priority: Blocker
> Fix For: 0.12.0
>
>
> See:
> https://scan4.coverity.com/reports.htm#v14284/p10556/fileInstanceId=8369775=1901068=122279=1901068-29
> This is just the core dump on empty address fix from proton-1122, separated 
> for 0,12 release.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1050) 0.12.0 release tasks

2016-02-02 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15129684#comment-15129684
 ] 

Justin Ross commented on PROTON-1050:
-

That should read 0.12.0 beta!

> 0.12.0 release tasks
> 
>
> Key: PROTON-1050
> URL: https://issues.apache.org/jira/browse/PROTON-1050
> Project: Qpid Proton
>  Issue Type: Task
>  Components: release
>    Reporter: Justin Ross
>    Assignee: Justin Ross
> Fix For: 0.12.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1121) Zero pointer derefence in pn_sasl_allowed_mechs()

2016-02-01 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1121:

Labels: coverity crash  (was: coverity)

> Zero pointer derefence in pn_sasl_allowed_mechs()
> -
>
> Key: PROTON-1121
> URL: https://issues.apache.org/jira/browse/PROTON-1121
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.10
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>  Labels: coverity, crash
>
> Coverity detected a potential derefence of a null string pointer in 
> pn_sasl_allowed_mechs().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1120) Memory leak using proton.utils

2016-02-01 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15127679#comment-15127679
 ] 

Justin Ross commented on PROTON-1120:
-

Reviewed by Ken.  Approved for 0.12.0.

> Memory leak using proton.utils
> --
>
> Key: PROTON-1120
> URL: https://issues.apache.org/jira/browse/PROTON-1120
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.10
> Environment: python-qpid-proton-0.10-2.fc23.x86_64
> And 0.9-13
>Reporter: Jeff Ortel
>Assignee: Gordon Sim
> Fix For: 0.12.0
>
> Attachments: memory-leak.py
>
>
> I have observed a fairly substantial memory leak using the blocking classes 
> in proton.utils.  Mainly with sending messages.  
> Observations:
> {code}
> growth =  52 MB  for  10,000 messages sent
> growth = 104 MB  for  20,000 messages sent
> leak   =  52 MB  per  10,000 sends or ~5 kB / send
> {code}
> The attached reproducer, can be used to collect and display statistics.  
> There is likely a better method for measuring the memory growth  but this was 
> easy.  Perhaps there is something incorrect/missing with the way I'm using 
> proton or measuring the memory growth/leak?
> {code}
> 
> 1 messages
> 
> total kB  242088   162567552 - sending
> total kB  293980   68224   59520 - sent
> total kB  293980   68228   59524 - receiving
> total kB  294236   68340   59632 - received
> SizeGrowth   Context
> __||__
> 242088 kB   +242088 kB   sending
> 293980 kB   + 51892 kB   sent
> 293980 kB   + 0 kB   receiving
> 294236 kB   +   256 kB   received
> 
> 2 messages
> 
> total kB  294236   68348   59640 - sending
> total kB  397820  171896  163232 - sent
> total kB  397820  171900  163236 - receiving
> total kB  398020  172060  163396 - received
> SizeGrowth   Context
> __||__
> 294236 kB   +294236 kB   sending
> 397820 kB   +103584 kB   sent
> 397820 kB   + 0 kB   receiving
> 398020 kB   +   200 kB   received
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1118) python setup.py build fails if run from git repo

2016-02-01 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15126726#comment-15126726
 ] 

Justin Ross commented on PROTON-1118:
-

Reviewed by Andrew.  Approved for 0.12.0.

> python setup.py build fails if run from git repo
> 
>
> Key: PROTON-1118
> URL: https://issues.apache.org/jira/browse/PROTON-1118
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: 0.12.0
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>  Labels: build-failure
> Fix For: 0.13.0
>
>
> If setup.py is run from the proton-c/bindings/proton directory, it should 
> build the local python bindings.  Instead it tries to download the 
> distribution from the Apache servers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-486) Create a User's Guide

2016-01-29 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-486:
---
Fix Version/s: (was: 0.12.0)
   0.13.0

> Create a User's Guide
> -
>
> Key: PROTON-486
> URL: https://issues.apache.org/jira/browse/PROTON-486
> Project: Qpid Proton
>  Issue Type: Improvement
>Reporter: Andreas Mueller
>    Assignee: Justin Ross
> Fix For: 0.13.0
>
>
> What would really helpful is a one-page user guide where you explain the 
> Messenger API. I want to know e.g. how to use the different QoS exactly-once, 
> at-most-once, at-least-once and all that stuff I can do with that API without 
> jumping from one header file to another and need to ask questions in mailing 
> lists. Provide basic samples with snippets in the different supported 
> language bindings.
> I think Messenger API is quite comparable with SwiftMQ's AMQP 1.0 Client. 
> This is how our client is documented:
> http://www.swiftmq.com/products/router/swiftlets/sys_amqp/client/index.html
> That's it. Doesn't took much effort to create it.
> Proton is *the* standard AMQP 1.0 driver. It would be a shame if users went 
> frustrated away from it because they don't understand the basic concepts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Request for inclusion in 0.12.0

2016-01-29 Thread Justin Ross
Thanks, Robbie and Andrew.  All set.

On Fri, Jan 29, 2016 at 9:21 AM, Andrew Stitcher 
wrote:

> I've approved both of these for inclusion (in the JIRAs).
>
> Andrew
>
> On Thu, 2016-01-28 at 11:04 +, Robbie Gemmell wrote:
> > Hi Justin,
> >
> > I'd like to request the following for inclusion in 0.12.0:
> >
> > Stop the proton-j transport from erroneously emitting various frame
> > types after a Close was sent.
> > https://issues.apache.org/jira/browse/PROTON-1114
> > https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=bcd08cc
> >
> > Some minor readme/pom changes around describing running the python
> > tests.
> > https://issues.apache.org/jira/browse/PROTON-1113
> > https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=f11723c
> >
> > Thanks,
> > Robbie
>


[jira] [Commented] (PROTON-1114) [proton-j] the transport should not emit other frames after the Close frame has been sent

2016-01-29 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15123814#comment-15123814
 ] 

Justin Ross commented on PROTON-1114:
-

Reviewed by Andrew.  Approved for 0.12.0.

> [proton-j] the transport should not emit other frames after the Close frame 
> has been sent
> -
>
> Key: PROTON-1114
> URL: https://issues.apache.org/jira/browse/PROTON-1114
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Affects Versions: 0.12.0
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
> Fix For: 0.13.0
>
>
> The proton-j transport can emit other frames after sending the Close frame 
> [whether because the Connection object was closed explicitly, or otherwise], 
> which is forbidden by the AMQP spec and as such needs to be prevented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1113) tidy up some descriptive detail around running the python tests

2016-01-29 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15123818#comment-15123818
 ] 

Justin Ross commented on PROTON-1113:
-

Reviewed by Andrew.  Approved for 0.12.0.

> tidy up some descriptive detail around running the python tests
> ---
>
> Key: PROTON-1113
> URL: https://issues.apache.org/jira/browse/PROTON-1113
> Project: Qpid Proton
>  Issue Type: Task
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
>Priority: Trivial
> Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: RFI: PROTON-1055 (SASL Plain authentication can fail on some brokers)

2016-01-28 Thread Justin Ross
Thanks, Robbie.  Approved.

On Thu, Jan 28, 2016 at 4:47 AM, Robbie Gemmell 
wrote:

> On 27 January 2016 at 21:09, Andrew Stitcher  wrote:
> > This [1] is really an interop bug, but I suspect it will be annoying to
> > anyone using earlier versions of ActiveMQ.
> >
> > The fix is pretty small and seems low risk to me.
> >
> > Andrew
> >
> > [1] https://issues.apache.org/jira/browse/PROTON-1055
>
> I gave this a look, and tested it out applied to the 0.12.0 beta using
> cyrus-casl, and all seemed well, I think including it would be good.
>
> (As an aside, I actually think of it as more than just an interop bug..)
>
> Robbie
>


[jira] [Commented] (PROTON-1055) Username sent twice during SASL AUTH

2016-01-28 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15121670#comment-15121670
 ] 

Justin Ross commented on PROTON-1055:
-

Reviewed by Robbie.  Approved for 0.12.0.

> Username sent twice during SASL AUTH
> 
>
> Key: PROTON-1055
> URL: https://issues.apache.org/jira/browse/PROTON-1055
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c, python-binding
>Affects Versions: 0.10
> Environment: # lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:Ubuntu 14.04.3 LTS
> Release:14.04
> Codename:   trusty
> # uname -a
> Linux esb-test-mq01 3.13.0-67-generic #110-Ubuntu SMP Fri Oct 23 13:24:41 UTC 
> 2015 x86_64 x86_64 x86_64 GNU/Linux
> # python --version
> Python 2.7.6
>Reporter: Simon Lundstrom
>Assignee: Andrew Stitcher
> Fix For: 0.13.0
>
>
> In versions >0.9.1.1 (We've tried 0.10 and 0.11.0) the username is sent twice 
> during SASL authentication.
> Working in 0.9.1.1:
> {code}
> # PN_TRACE_FRM=1 ./meow.py
> [0x250d3b0]:  -> SASL
> [0x250d3b0]:0 -> @sasl-init(65) [mechanism=:PLAIN, 
> initial-response=b"\x00the_username\x00the_password"]
> [0x250d3b0]:  <- SASL
> [0x250d3b0]:0 <- @sasl-mechanisms(64) 
> [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
> [0x250d3b0]:0 <- @sasl-outcome(68) [code=0]
> [0x250d3b0]:  -> AMQP
> [0x250d3b0]:0 -> @open(16) 
> [container-id="6b1fecb6-358e-48af-b461-bae3563a7c7f", hostname="esb-test"]
> [0x250d3b0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, 
> outgoing-window=1]
> [0x250d3b0]:0 -> @attach(18) [name="sender-xxx", handle=0, role=false, 
> snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) 
> [address="TEST-queue", durable=0, timeout=0, dynamic=false], 
> target=@target(41) [address="TEST-queue", durable=0, timeout=0, 
> dynamic=false], initial-delivery-count=0]
> [0x250d3b0]:  <- AMQP
> [0x250d3b0]:0 <- @open(16) [container-id="", hostname="", 
> max-frame-size=4294967295, channel-max=32767, idle-time-out=15000, 
> offered-capabilities=@PN_SYMBOL[:"ANONYMOUS-RELAY"], 
> properties={:product="ActiveMQ", :"topic-prefix"="topic://", 
> :"queue-prefix"="queue://", :version="5.12.1", :platform="Java/1.8.0_45"}]
> [0x250d3b0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=1, 
> incoming-window=0, outgoing-window=0, handle-max=65535]
> [0x250d3b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, 
> next-outgoing-id=1, outgoing-window=0]
> [0x250d3b0]:0 <- @attach(18) [name="sender-xxx", handle=0, role=true, 
> snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) 
> [address="TEST-queue"], target=@target(41) [address="TEST-queue"]]
> [0x250d3b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, 
> next-outgoing-id=1, outgoing-window=0, handle=0, delivery-count=0, 
> link-credit=1000]
> [0x250d3b0]:0 -> @transfer(20) [handle=0, delivery-id=0, 
> delivery-tag=b"\x00\x00\x00\x00\x00\x00\x00\x00", message-format=0, 
> settled=true, more=false] (131) "\x00[…]"
> #
> {code}
> Not working in >0.9.1.1:
> {code}
> # PN_TRACE_FRM=1 ./meow.py
> [0x18aa060]:  -> SASL
> [0x18aa060]:  <- SASL
> [0x18aa060]:0 <- @sasl-mechanisms(64) 
> [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
> [0x18aa060]:0 -> @sasl-init(65) [mechanism=:PLAIN, 
> initial-response=b"the_username\x00the_username\x00the_password"]
> [0x18aa060]:0 <- @sasl-outcome(68) [code=1]
> [0x18aa060]:  -> EOS
> #
> {code}
> When using >0.9.1.1 and using SSL it does the same BUT then just hangs. 
> Should we open a seperate Jira for this?:
> {code}
> # PN_TRACE_FRM=1 time ./meow.py
> [0xa5d060]:  -> SASL
> [0xa5d060]:  <- SASL
> [0xa5d060]:0 <- @sasl-mechanisms(64) 
> [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
> [0xa5d060]:0 -> @sasl-init(65) [mechanism=:PLAIN, 
> initial-response=b"the_username\x00the_username\x00the_password"]
> [0xa5d060]:0 <- @sasl-outcome(68) [code=1]
> ^CTraceback (most recent call last):
>   File "./meow.py", line 12, in 
> messenger.send()
>   File "/usr/local/lib/python2.7/dist-packages/proton/__init__.py", line 568, 
> in send
> self._check(pn_messenger_send(self._mng, n))
> KeyboardInterrupt
> Command exited with non-zero status 1
> 0.08user 0.02system 0:50.69elapsed 0%CPU (0avgtext+0avgdata 12192maxresident)k
> 0inputs+0outputs (0major+5474minor)pagefaults 0swaps
> #
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Request for 0.12.0: NO-JIRA: c++: fix C++11 compile errors.

2016-01-28 Thread Justin Ross
Yes, definitely.

On Thu, Jan 28, 2016 at 1:57 PM, Andrew Stitcher 
wrote:

> On Thu, 2016-01-28 at 13:29 -0500, Andrew Stitcher wrote:
> > On Thu, 2016-01-28 at 12:43 -0500, Alan Conway wrote:
> > > The 0.12.x branch does not compile under c++11 (clang and gcc) with
> > > warnings, this fixes them
> > >
> > > https://github.com/apache/qpid-proton/commit/05502ad56f5a3860d5d19a
> > > b7
> > > c8
> > > 08ad43bd39274e
> >
> > Unfortunately this breaks windows builds - I'm working up a fix that
> > works everywhere.
>
> I'ved worked up a somewhat improved fix that works on Windows. Because
> the final result is a squach of 3 changes, but it actually simple in
> itself I've created a branch to inspect it in the apache tree.
>
> Alan, check out astitcher/0.12.x/potential-fix [simgle change] and tell
> me if you think it's good.
>
> Justin, approve if Alan doesn't dissent?
>
> Andrew
>
> >
> > Andrew
> >
>


Proton 0.12.0 release notes and docs preview

2016-01-28 Thread Justin Ross
Hi, everyone.  Please take a look at the proposed landing page content and
release notes for 0.12.0.


http://people.apache.org/~jross/qpid-site/head/releases/qpid-proton-0.12.0/index.html


http://people.apache.org/~jross/qpid-site/head/releases/qpid-proton-0.12.0/release-notes.html

There is still time to change the release note content by updating issues
in jira.  I'll get the new content when I regenerate everything after the
release vote.

Also, please add a comment about any special release notes you'd like to
the release jira.

https://issues.apache.org/jira/browse/PROTON-1050

Thanks!
Justin


[jira] [Commented] (PROTON-1095) Error handling

2016-01-28 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15121855#comment-15121855
 ] 

Justin Ross commented on PROTON-1095:
-

I don't get it.  This change looks like it's beyond what Andrew's
change would require.  Proton is in Beta.  This looks like you're
bringing in the newest API thinking.



> Error handling
> --
>
> Key: PROTON-1095
> URL: https://issues.apache.org/jira/browse/PROTON-1095
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: cpp-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
> Fix For: 0.12.0, 0.13.0
>
>
> The C++ binding needs a disciplined and effective way to handle protocol (and 
> transport) errors.
> Currently the API has some error events, however if they are not handled the 
> program will just hang - it would be better in this case to throw an 
> exception so that the program doesn't just hang.
> Another issue is creating error states (attaching a condition) when closing a 
> connection/session/link - there should be some straightforward way to 
> indicate the error to your peer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1095) Error handling

2016-01-27 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15120712#comment-15120712
 ] 

Justin Ross commented on PROTON-1095:
-

The additional commits are required to avoid a test hang (and make the error 
handling behave as intended).  Reviewed by Alan.  Approved for 0.12.0.

> Error handling
> --
>
> Key: PROTON-1095
> URL: https://issues.apache.org/jira/browse/PROTON-1095
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: cpp-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
> Fix For: 0.12.0, 0.13.0
>
>
> The C++ binding needs a disciplined and effective way to handle protocol (and 
> transport) errors.
> Currently the API has some error events, however if they are not handled the 
> program will just hang - it would be better in this case to throw an 
> exception so that the program doesn't just hang.
> Another issue is creating error states (attaching a condition) when closing a 
> connection/session/link - there should be some straightforward way to 
> indicate the error to your peer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1111) Fix warnings during make doc

2016-01-27 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15119806#comment-15119806
 ] 

Justin Ross commented on PROTON-:
-

Correction, epydoc, not sphinx.

> Fix warnings during make doc
> 
>
> Key: PROTON-
> URL: https://issues.apache.org/jira/browse/PROTON-
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c, python-binding
>Affects Versions: 0.13.0
>    Reporter: Justin Ross
>Assignee: Justin Ross
>Priority: Minor
> Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1111) Fix warnings during make doc

2016-01-27 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15119796#comment-15119796
 ] 

Justin Ross commented on PROTON-:
-

No, it's simply because sphinx doesn't understand (warns on) from . import.

> Fix warnings during make doc
> 
>
> Key: PROTON-
> URL: https://issues.apache.org/jira/browse/PROTON-
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c, python-binding
>Affects Versions: 0.13.0
>    Reporter: Justin Ross
>Assignee: Justin Ross
>Priority: Minor
> Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: proton 0.12 target release date

2016-01-27 Thread Justin Ross
Hi, Sree.  Below is a link to the schedule.  Often we add another RC at the
end, so the release may come a week or two after the target date you see
there.  In any case, it will likely be in the first half of February.

https://cwiki.apache.org/confluence/display/qpid/Qpid+Proton+0.12.0#QpidProton0.12.0-Schedule

On Wed, Jan 27, 2016 at 10:20 AM, Garlapati Sreeram Kumar  wrote:

> Hello Folks!
>
> Is there any target (or a ball-park of) release date for Proton-j 0.12 –
> when it shows up in the Maven repo @
> https://search.maven.org/#search%7Cga%7C1%7Cproton-j
>
> Thanks a lot for all the Help!
> Sree
>
>


[jira] [Created] (PROTON-1111) Fix warnings during make doc

2016-01-27 Thread Justin Ross (JIRA)
Justin Ross created PROTON-:
---

 Summary: Fix warnings during make doc
 Key: PROTON-
 URL: https://issues.apache.org/jira/browse/PROTON-
 Project: Qpid Proton
  Issue Type: Improvement
  Components: proton-c, python-binding
Affects Versions: 0.13.0
Reporter: Justin Ross
Assignee: Justin Ross
Priority: Minor
 Fix For: 0.13.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (PROTON-1111) Fix warnings during make doc

2016-01-27 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross resolved PROTON-.
-
Resolution: Fixed

> Fix warnings during make doc
> 
>
> Key: PROTON-
> URL: https://issues.apache.org/jira/browse/PROTON-
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c, python-binding
>Affects Versions: 0.13.0
>    Reporter: Justin Ross
>Assignee: Justin Ross
>Priority: Minor
> Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-1100) [proton-j] the transport should not emit other frames before the Open frame has been sent

2016-01-26 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15117247#comment-15117247
 ] 

Justin Ross commented on PROTON-1100:
-

The last commit arrived just before the beta was created.  Approved for 0.12.0.

> [proton-j] the transport should not emit other frames before the Open frame 
> has been sent
> -
>
> Key: PROTON-1100
> URL: https://issues.apache.org/jira/browse/PROTON-1100
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Affects Versions: 0.11.0
>Reporter: Robbie Gemmell
>Assignee: Robbie Gemmell
> Fix For: 0.12.0
>
>
> As per PROTON-1070 description, the proton-j transport can emit other frames 
> without first sending the Open frame [because the Connection object wasnt 
> actually opened], which is erroneous behaviour and should be prevented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Request for inclusion in 0.12.0 beta

2016-01-26 Thread Justin Ross
Thanks, Robbie.  Both are approved.


On Tue, Jan 26, 2016 at 6:10 AM, Robbie Gemmell 
wrote:

> Hi Justin,
>
> I see you have created the 0.12.x branch, but before you actually spin
> the beta, could I request the following...
>
> The latest commit on https://issues.apache.org/jira/browse/PROTON-1100
> didnt make the branch.
> https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=6422e24
>
> Also since its a similarly trivial if check expansion but of more real
> world use, can I separately request:
> https://issues.apache.org/jira/browse/PROTON-1110
>
> Thanks,
> Robbie
>


Proton 0.12.0 release update - Beta is available

2016-01-26 Thread Justin Ross
Hi, folks.  The beta is now available from the following URL:

https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-beta/

Maven staging repo:

https://repository.apache.org/content/repositories/orgapacheqpid-1059

Test output from my machine, Fedora 23 x86-64:


http://people.apache.org/~jross/qpid-releases/quirk-proton-0.12.0-beta.log

Only one week remains before the release candidate.  See the release
page[1] for more information.  Please test in your environment and report
what you find.

Thanks!
Justin

---
[1] Proton 0.12.0 release page:
https://cwiki.apache.org/confluence/display/qpid/Qpid+Proton+0.12.0


[jira] [Created] (PROTON-1109) Improve the C++ binding documentation

2016-01-25 Thread Justin Ross (JIRA)
Justin Ross created PROTON-1109:
---

 Summary: Improve the C++ binding documentation
 Key: PROTON-1109
 URL: https://issues.apache.org/jira/browse/PROTON-1109
 Project: Qpid Proton
  Issue Type: Improvement
  Components: cpp-binding
Reporter: Justin Ross
Assignee: Justin Ross
 Fix For: 0.12.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Request delay of proton 0.12 beta.

2016-01-19 Thread Justin Ross
Okay, not a problem.  I'll adjust the schedule on the release page.

Justin

On Tue, Jan 19, 2016 at 11:57 AM, Alan Conway  wrote:

> We are working hard on the C++ binding, which will include a
> "connection_engine" as an alternative to the reactor, I'll post another
> note on why and how it is different. Probably not going to be ready to
> go on Wed, can we postpone the Beta till Monday?
>
> Cheers,
> Alan.
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
> For additional commands, e-mail: dev-h...@qpid.apache.org
>
>


[jira] [Commented] (PROTON-1088) Add convenience functions to obtain the client certificate fingerprint, subject subfields

2016-01-19 Thread Justin Ross (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15106717#comment-15106717
 ] 

Justin Ross commented on PROTON-1088:
-

I don't think the patch on this one is ready.  The names of the constants and 
methods differ.  The number of new methods in Python is large, and it's not 
clear to me why we need this many convenience accessors.  Many of these no-arg 
accessors are named get_something, where the Proton style is to use property 
accessors without get_.  Indeed the patch itself does this in one instance, but 
not others.

IMO, since this is public API and not just an implementation detail, this 
hasn't received enough attention to go in for 0.12.0 at this point.

> Add convenience functions to obtain the client certificate fingerprint, 
> subject subfields
> -
>
> Key: PROTON-1088
> URL: https://issues.apache.org/jira/browse/PROTON-1088
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c
>Affects Versions: 0.11.1
>Reporter: Ganesh Murthy
>Assignee: Ganesh Murthy
> Fix For: 0.12.0
>
>
> 1. Provide a convenience function which will return a an ssl certificate 
> fingerprint (a sha1 or sha256 hash of the certificate). 
> -- When you look go to a https site via a web browser, you can look at the 
> certificate fingerprint by clicking the View Certificate button on the 
> browser. Add a convenience function to proton which will return the char 
> array of octets. sha1 hashing produces a 20 octet hash and sha256 provides a 
> 32 octet hash. The function signature should approximately look like this - 
> void pn_ssl_get_fingerprint(pn_ssl_t \*ssl0, unsigned char \*md, const char* 
> digest_name)
> 2. The subject field on the SSL cert has many subfields like - 
> C = ISO3166 two character country code
> ST = state or province
> L = Locality; generally means city
> O = Organization - Company Name
> OU = Organization Unit - division or unit
> CN = CommonName - end entity name e.g. www.example.com
> Provide convenience functions to obtain values of the above subfields.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Proton 0.12.0 release update - Alpha is available

2016-01-13 Thread Justin Ross
Hello, everyone.  It's time for the Proton 0.12.0 alpha.

  Revision: 576f656b on master
  Artifacts:
https://dist.apache.org/repos/dist/dev/qpid/proton/0.12.0-alpha/
  Test output:
http://people.apache.org/~jross/qpid-releases/quirk-proton-0.12.0-alpha.log

See the release page[1] for more information about the schedule and
criteria for accepting changes.

We branch for release in *one week*.  Start your testing early.

Thanks!
Justin

---
[1] Proton 0.12.0 release page:
https://cwiki.apache.org/confluence/display/qpid/Qpid+Proton+0.12.0


[jira] [Updated] (PROTON-344) Need Ruby version of msgr-send/msgr-recv tools

2016-01-12 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-344:
---
Labels: message messenger  (was: message)

> Need Ruby version of msgr-send/msgr-recv tools
> --
>
> Key: PROTON-344
> URL: https://issues.apache.org/jira/browse/PROTON-344
> Project: Qpid Proton
>  Issue Type: Task
>  Components: proton-c
>Affects Versions: 0.4
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>  Labels: message, messenger
>
> A ruby variant of msgr-send/recv traffic generators should be added to the 
> soak tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-241) proton-c: mark old transport interfaces 'deprecated'

2016-01-12 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-241:
---
Labels: api  (was: visibility)

> proton-c: mark old transport interfaces 'deprecated'
> 
>
> Key: PROTON-241
> URL: https://issues.apache.org/jira/browse/PROTON-241
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Reporter: Ken Giusti
>Priority: Trivial
>  Labels: api
>
> Once PROTON-225 is implemented, we should eventually remove the old 
> interfaces after marking them deprecated.
> Example:
> #ifdef __GNUC__
> #define DEPRECATED(func) func __attribute__ ((deprecated))
> #elif defined(_MSC_VER)
> #define DEPRECATED(func) __declspec(deprecated) func
> #else
> #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
> #define DEPRECATED(func) func
> #endif



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-236) Porting Issue -- Visual Studio does not provide a getopt() function

2016-01-12 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-236:
---
Labels: windows  (was: )

> Porting Issue -- Visual Studio does not provide a getopt() function
> ---
>
> Key: PROTON-236
> URL: https://issues.apache.org/jira/browse/PROTON-236
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c
> Environment: Windows using Visual Studio 2010
>Reporter: Mary hinton
>Assignee: Cliff Jansen
>  Labels: windows
> Attachments: freegetopt-0.11.tar.gz, getopt.c, getopt.h
>
>
> Since Visual Studio 2010 does not provide a getopt(), I used the getopt() 
> function found in the GNU library getopt.h and getopt.c. I made a few minor 
> changes and will attach these files to this JIRA.
> Besides the proton.c file, the proton project workspace for Visual Studio 
> would need to include getopt() files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-335) Need a means of specifying and reading link properties

2016-01-12 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-335:
---
Labels: api  (was: )

> Need a means of specifying and reading link properties
> --
>
> Key: PROTON-335
> URL: https://issues.apache.org/jira/browse/PROTON-335
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
>Reporter: Gordon Sim
>Priority: Minor
>  Labels: api
>
> There are some cases where it may be beneficial to use link properties (since 
> link capabilities do not allow for key-value pairs, they can't easily convey 
> a desired configurable value and the properties on a terminus refer to the 
> dynamically created node not the link or the terminus itself).
> (I've set this to minor since major feels a little strong, but I do think its 
> important ultimately for the engine to expose all the extension points from 
> the protocol.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (PROTON-330) Centos 6.4 build failure: Could NOT find Java

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-330.
--
Resolution: Fixed

https://github.com/apache/qpid-proton/blob/master/INSTALL.md

The install instructions now reference the openjdk-devel package.

> Centos 6.4 build failure: Could NOT find Java
> -
>
> Key: PROTON-330
> URL: https://issues.apache.org/jira/browse/PROTON-330
> Project: Qpid Proton
>  Issue Type: Bug
>Affects Versions: 0.4
> Environment: Centos 6.4 x86_64
>Reporter: Evgeny Minkevich
>Priority: Minor
>
> [tcs@centos build]$ echo $M2_HOME
> /home/tcs/apache-maven-3.0.5
> [tcs@centos build]$ echo $JAVA_HOME
> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64
> [tcs@centos build]$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
> PN_VERSION: 0.4
> -- Could NOT find Java  (missing:  Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE 
> Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE)
> -- Cannot find both Java and Maven: testing disabled for Proton-J and JNI 
> Bindings



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-363) recv.exe fails on Windows XP because getnameinfo returns WSANO_DATA / error 11004

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-363:
---
Labels: windows  (was: )

> recv.exe fails on Windows XP because getnameinfo returns WSANO_DATA / error 
> 11004
> -
>
> Key: PROTON-363
> URL: https://issues.apache.org/jira/browse/PROTON-363
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.5
> Environment: Windows XP, Visual Studio 2010
>Reporter: Jakub Scholz
>  Labels: windows
>
> I build the proton-c library on Windows XP using Visual Studio 10. 
> Afterwards, when trying to run the recv.exe and send.exe examples, the 
> recv.exe always fails with:
> > recv.exe amqp://~0.0.0.0:5672
> getnameinfo: The requested name is valid and was found in the database, but 
> it does not have the correct associated data being resolved for.
> It doesn't fail immediately after start but only when I attempt to connect 
> with send.exe. As a result, the Proton seems to be pretty much not working on 
> my machine.
> ---
> The error seems to originate from the function pn_listener_accept in driver.c 
> and it translates to WSANO_DATA error / error 11004. I did some digging 
> around and playing with the getnameinfo function and it seems to me, that the 
> problem is that the getnameinfo function is unable to recognize the service 
> name based on the port number. And - according to MSDN 
> (http://msdn.microsoft.com/en-us/library/windows/desktop/ms738532(v=vs.85).aspx)
>  - that on Windows Server 2003 and earlier results in error (on Windows Vista 
> and later this works fine).
> If I add a flag NI_NUMERICSERV to the getnameinfo call: 
> code = getnameinfo((struct sockaddr *) , addrlen, host, 1024, serv, 64, 
> NI_NUMERICSERV)
> it will not return an error but return success and use the port number as a 
> service name. And with this change the recv.exe starts working fine.
> However, adding this flag will on Windows Vista and higher and in Linux 
> probably result in the service name being always returned as a port number 
> and not as a name. So I'm not sure it is desired to add this flag on all 
> platforms. 
> Regards
> Jakub



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-21) Extract the logical AMQP frame handling to an AbstractConnectionHandler

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-21:
--
Labels: api patch  (was: api)

> Extract the logical AMQP frame handling to an AbstractConnectionHandler
> ---
>
> Key: PROTON-21
> URL: https://issues.apache.org/jira/browse/PROTON-21
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c, proton-j
>Reporter: Hiram Chirino
>Assignee: Rob Godfrey
>  Labels: api, patch
> Attachments: PROTON-21-v3.patch
>
>
> Right now all the logic that handles logical AMQP frame events is inside of 
> the TransportImpl class.  That interface only allows you to pump bytes in and 
> out of the connection.  If we extract all the handling logic to an 
> AbstractConnectionHandler you should be able to use that directly and pump 
> logical AMQP frames and avoid the frame encoding/decoding phase that the 
> TransportImpl also does.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-73) Server should force renegotiate when client authentication setting is changed on an active connection.

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-73:
--
Labels: security ssl  (was: ssl)

> Server should force renegotiate when client authentication setting is changed 
> on an active connection.
> --
>
> Key: PROTON-73
> URL: https://issues.apache.org/jira/browse/PROTON-73
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Reporter: Ken Giusti
>Assignee: Ken Giusti
>Priority: Minor
>  Labels: security, ssl
>
> If the server application changes the peer authentication setting from 
> 'anonymous' to 'verify-peer' while an SSL session is active, then the server 
> should force the client to re-negotiate (SSL handshake) to verify the 
> remote's identity.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-291) fix the SSL layer of the transport to only pop from the amqp layer when bytes are known to have actually been written to the socket

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-291:
---
Labels: ssl  (was: )

> fix the SSL layer of the transport to only pop from the amqp layer when bytes 
> are known to have actually been written to the socket
> ---
>
> Key: PROTON-291
> URL: https://issues.apache.org/jira/browse/PROTON-291
> Project: Qpid Proton
>  Issue Type: Bug
>Reporter: Rafael H. Schloming
>Assignee: Ken Giusti
>  Labels: ssl
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-303) Need an easy to use Map handling API

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-303:
---
Labels: codec  (was: )

> Need an easy to use Map handling API
> 
>
> Key: PROTON-303
> URL: https://issues.apache.org/jira/browse/PROTON-303
> Project: Qpid Proton
>  Issue Type: New Feature
>  Components: proton-c
>Affects Versions: 0.4
>Reporter: Ken Giusti
>Priority: Minor
>  Labels: codec
>
> Using the exiting data and codec apis for manipulating maps are a pain.  As a 
> convenience, a set of higher level map utilities should be provided by proton.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-158) detach with invalid handle causes segfault

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-158:
---
Labels: crash  (was: )

> detach with invalid handle causes segfault
> --
>
> Key: PROTON-158
> URL: https://issues.apache.org/jira/browse/PROTON-158
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.2
>Reporter: Gordon Sim
>Assignee: Ken Giusti
>Priority: Minor
>  Labels: crash
>
> I.e. a detach where the handle was not previously used in an attach



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-357) Add PHP PECL package

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-357:
---
Labels: packaging  (was: )

> Add PHP PECL package
> 
>
> Key: PROTON-357
> URL: https://issues.apache.org/jira/browse/PROTON-357
> Project: Qpid Proton
>  Issue Type: New Feature
>  Components: proton-c
>Affects Versions: 0.4
> Environment: Linux, Macos X
>Reporter: Serge Smertin
>  Labels: packaging
>
> In order to get Proton adoption in PHP ecosystem and not to build library 
> from sources, PECL package should be introduced. Probably with Packagist as 
> well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-254) Swig generated c code for java bindings fails to compile on Windows Visual Studio 2010

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-254:
---
Labels: patch windows  (was: windows)

> Swig generated c code for java bindings fails to compile on Windows Visual 
> Studio 2010
> --
>
> Key: PROTON-254
> URL: https://issues.apache.org/jira/browse/PROTON-254
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
> Environment: Windows 7
> Visual Studio 2010
>Reporter: Keith Wall
>Assignee: Cliff Jansen
>  Labels: patch, windows
> Attachments: 
> 0001-PROTON-254-Resolve-Nested-union-not-currently-suppor.patch, 
> make-proton-jni-cxx-errors.txt, pn254-cj-0.patch
>
>
> Swig generated C code for the Java bindings fails to compile on Visual Studio 
> 2010 with error message:
> C1083: Cannot open include file: 'stdbool.h': No such file or directory
> After discussion on list [1], we tried changing bindings/java/CMakeLists.txt 
> to use CPLUSPLUS ON directive to CMake in the case where BUILD_WITH_CXX has 
> been enabled earlier in the build.
> if (BUILD_WITH_CXX)
>SET_SOURCE_FILES_PROPERTIES(java.i PROPERTIES CPLUSPLUS ON)
> endif (BUILD_WITH_CXX)
> Switching to CPP in this way exposed a number of errors when compiling the 
> CPP code resulting from the java.i (casting issues, pointer arithmetic etc - 
> see attached make-proton-jni-cxx-errors.txt).  However, even after resolving 
> the CPP compilation issues, we then encounter a problem with Swig's handling 
> of nested unions when when CPP.  The seeming inability of SWIG (when used 
> with CPP) to represent the union means that SWIG does not produce 
> pn_atom_t_u.java.  JNIMessage.java, which references pn_atom_t_u, 
> consequently fails to compile.
> The warning from swig is:
> /home/keith/src/proton/proton-c/include/proton/codec.h:91: Warning 312: 
> Nested union not currently supported (ignored).
>  
> [1] 
> http://mail-archives.apache.org/mod_mbox/qpid-proton/201302.mbox/%3ccamyv19mgbdvd2wextvpwywtysskadokb7wtj+u-3jkncwdx...@mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (PROTON-326) proton-c ServerTest.testIdleTimeout sometimes fails, causing test suite to hang forever

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-326.
--
Resolution: Unresolved

Closing this on the idea that it's probably out of date.  Please reopen if I am 
wrong.

> proton-c ServerTest.testIdleTimeout sometimes fails, causing test suite to 
> hang forever
> ---
>
> Key: PROTON-326
> URL: https://issues.apache.org/jira/browse/PROTON-326
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
> Environment: Linux
>Reporter: Philip Harvey
>
> I ran the python test suite against proton-c today and noticed that 
> ServerTest.testIdleTimeout failed with the following output:
> {noformat}
> proton_tests.engine.ServerTest.testIdleTimeout 
> ..ERROR amqp:resource-limit-exceeded 
> local-idle-timeout expired
>  fail
> Error during test:  Traceback (most recent call last):
> File "./tests/python/proton-test", line 340, in run
>   phase()
> File "/.../workspace/proton/tests/python/proton_tests/engine.py", line 
> 1412, in testIdleTimeout
>   assert self.conn.state == (Endpoint.LOCAL_ACTIVE | 
> Endpoint.REMOTE_ACTIVE), "Connection terminated"
>   AssertionError: Connection terminated
> {noformat}
> This test usually succeeds so I guess it contains a race condition.
> Something that is arguably more problematic is that this failure causes the 
> test suite to hang. The suite proceeds to run the other tests, but does not 
> terminate when it reaches the end. On Linux, I actually had to kill the 
> process rather than ctrl-c-ing it.  
> I cannot reproduce the test failure, but I do find that if I make it fail 
> (for example, by modifying the assert on line 1412 to always fail) then the 
> suite hangs every time.
> It's obviously undesirable for a failing test to cause the entire suite to 
> hang.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (PROTON-327) proton-c: soak.MessengerTests.test_relay_C_SSL sometimes fails

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-327.
--
Resolution: Unresolved

An old test failure that is probably out of date.  Please reopen if it makes 
sense to.

> proton-c: soak.MessengerTests.test_relay_C_SSL sometimes fails
> --
>
> Key: PROTON-327
> URL: https://issues.apache.org/jira/browse/PROTON-327
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
> Environment: Linux
>Reporter: Philip Harvey
>
> Today I observed the following test failure on my CI server.  This is the 
> first time I've seen the test fail.  It passed when I re-ran it.
> Here is the test output:
> proton_tests.soak.MessengerTests.test_relay_C_SSL (from pythontests)
> Failing for the past 1 build (Since Failed#122 )
> Took 1 min 0 sec.
> add description
> Error Message
> Command '['msgr-send', '-a', 
> 'amqps://0.0.0.0:58694/X0Y,amqps://0.0.0.0:58694/X1Y,amqps://0.0.0.0:58694/X2Y,amqps://0.0.0.0:58694/X3Y,amqps://0.0.0.0:58694/X4Y',
>  '-c', '85', '-R', '-t', '60']' failed
> Stacktrace
> Error during test:  Traceback (most recent call last):
> File "./tests/python/proton-test", line 340, in run
>   phase()
> File "/.../proton/tests/python/proton_tests/soak.py", line 310, in 
> test_relay_C_SSL
>   self._do_relay_test(MessengerReceiverC(), MessengerReceiverC(), 
> MessengerSenderC(), "amqps")
> File "/.../proton/tests/python/proton_tests/soak.py", line 220, in 
> _do_relay_test
>   self._do_test(iterations)
> File "/.../proton/tests/python/proton_tests/soak.py", line 96, in _do_test
>   assert S.status() == 0, "Command '%s' failed" % str(S.cmdline())
>   AssertionError: Command '['msgr-send', '-a', 
> 'amqps://0.0.0.0:58694/X0Y,amqps://0.0.0.0:58694/X1Y,amqps://0.0.0.0:58694/X2Y,amqps://0.0.0.0:58694/X3Y,amqps://0.0.0.0:58694/X4Y',
>  '-c', '85', '-R', '-t', '60']' failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-241) proton-c: mark old transport interfaces 'deprecated'

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-241:
---
Labels: visibility  (was: )

> proton-c: mark old transport interfaces 'deprecated'
> 
>
> Key: PROTON-241
> URL: https://issues.apache.org/jira/browse/PROTON-241
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Reporter: Ken Giusti
>Priority: Trivial
>  Labels: visibility
>
> Once PROTON-225 is implemented, we should eventually remove the old 
> interfaces after marking them deprecated.
> Example:
> #ifdef __GNUC__
> #define DEPRECATED(func) func __attribute__ ((deprecated))
> #elif defined(_MSC_VER)
> #define DEPRECATED(func) __declspec(deprecated) func
> #else
> #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
> #define DEPRECATED(func) func
> #endif



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-186) Message encode should always return the number of bytes needed to fully encode the message

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-186:
---
Labels: patch  (was: )

> Message encode should always return the number of bytes needed to fully 
> encode the message
> --
>
> Key: PROTON-186
> URL: https://issues.apache.org/jira/browse/PROTON-186
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c, proton-j
>Reporter: Hiram Chirino
>  Labels: patch
> Attachments: PROTON-186v2.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-151) Have the python interface use dynamic proxies to the engine impl objects so to ensure that only public interface methods are being used by the python tests.

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-151:
---
Labels: patch  (was: )

> Have the python interface use dynamic proxies to the engine impl objects so 
> to ensure that only public interface methods are being used by the python 
> tests.
> 
>
> Key: PROTON-151
> URL: https://issues.apache.org/jira/browse/PROTON-151
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Reporter: Hiram Chirino
>  Labels: patch
> Attachments: PROTON-151.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-162) SSL implementation does not support certification revocation

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-162:
---
Labels: security ssl  (was: )

> SSL implementation does not support certification revocation
> 
>
> Key: PROTON-162
> URL: https://issues.apache.org/jira/browse/PROTON-162
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.3
>Reporter: Ken Giusti
>  Labels: security, ssl
>
> OpenSSL supports a means for configuring lists of revoked certificates.   The 
> SSL layer used by proton-c does not provide a means to configure this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-237) Porting Issue -- basename() not found in Visual Studio 2010

2016-01-10 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-237:
---
Labels: build windows  (was: build)

> Porting Issue -- basename() not found in Visual Studio 2010
> ---
>
> Key: PROTON-237
> URL: https://issues.apache.org/jira/browse/PROTON-237
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c
> Environment: Windows Visual Studio 2010
>Reporter: Mary hinton
>  Labels: build, windows
>
> The basename() function in proton.c is not found in Visual Studio 2010. It is 
> in Visual Studio 2012 when the  header is included.
> It is only used in a printf statement and is not needed for porting to Visual 
> Studio 2010:
> printf("Usage: %s [-h] [-c [user[:password]@]host[:port]] [-a ] [-m 
> ]\n", basename(argv[0])); 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (PROTON-542) Message.properties should default to an empty dictionary

2016-01-08 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-542.
--
Resolution: Won't Fix

> Message.properties should default to an empty dictionary
> 
>
> Key: PROTON-542
> URL: https://issues.apache.org/jira/browse/PROTON-542
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Affects Versions: 0.7
>    Reporter: Justin Ross
>
> Message.properties should default to an empty dictionary, not null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-999) Docs: pn_messenger_subscribe(): "source" is undocumented

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-999:
---
Labels: documentation messenger  (was: documentation)

> Docs: pn_messenger_subscribe(): "source" is undocumented
> 
>
> Key: PROTON-999
> URL: https://issues.apache.org/jira/browse/PROTON-999
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.10
>Reporter: Graham Leggett
>Assignee: Justin Ross
>  Labels: documentation, messenger
>
> The pn_messenger_subscribe() function is documented to take a const char * as 
> a "source":
> https://qpid.apache.org/releases/qpid-proton-0.10/proton/c/api/group__messenger.html#gaf1f1bfe4894d971f0b8d679bcab5cae6
> The definition of a "source" isn't specified, nor is the acceptable source 
> format specified.
> In addition, it isn't specified in the docs whether this function must be 
> called once, or whether it can be called multiple times. Reverse engineering 
> the source seems to indicate that it should be called just once, and if you 
> call it multiple times the underlying event loop will be corrupted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-260) Messenger Documentation

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-260:
---
Labels: messenger  (was: )

> Messenger Documentation
> ---
>
> Key: PROTON-260
> URL: https://issues.apache.org/jira/browse/PROTON-260
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c
>Affects Versions: 0.5
>Reporter: michael goulish
>Assignee: michael goulish
>  Labels: messenger
>
> Write documentation for the Proton Messenger interface, to include:
>   introduction
>   API explanations
>   theory of operation
>   example programs
>   programming idioms
>   tutorials
>   quickstarts
>   troubleshooting
> Documents should use MarkDown markup language.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-574) proton-c: Messenger doesn't indicate when connection is aborted for a SASL negotation failure

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-574:
---
Labels: messenger patch  (was: )

> proton-c: Messenger doesn't indicate when connection is aborted for a SASL 
> negotation failure
> -
>
> Key: PROTON-574
> URL: https://issues.apache.org/jira/browse/PROTON-574
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.7
>Reporter: Dominic Evans
>Assignee: Andrew Stitcher
>  Labels: messenger, patch
> Attachments: 05_return_sasl_auth_errors_messenger.c.patch, 
> 05_return_sasl_auth_errors_transport.c.patch, 
> 05_return_sasl_auth_errors_transport.h.patch
>
>
> Currently if a Messenger's connection is aborted at the remote end, there's 
> no differentiation between the connection just being dropped and a failure to 
> negotiate SASL.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (PROTON-441) Provide hooks for alternative sources of Messenger routes

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed PROTON-441.
--
Resolution: Won't Fix

> Provide hooks for alternative sources of Messenger routes
> -
>
> Key: PROTON-441
> URL: https://issues.apache.org/jira/browse/PROTON-441
> Project: Qpid Proton
>  Issue Type: New Feature
>  Components: proton-c
>Affects Versions: 0.5
>Reporter: Ted Ross
>  Labels: messenger
>
> This is a request to add the capability to set Messenger routes automatically 
> on Messenger startup.  Where the routes come from may be platform-specific 
> (i.e. environment variables, configuration files, registries, network-based 
> lookup, etc.).
> The desire is to allow Messenger applications to be wholly unaware of the 
> route mappings that come from other sources.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1041) Add recurring timer example to the reactive C++ documentation

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1041:

Fix Version/s: 0.12.0

> Add recurring timer example to the reactive C++ documentation
> -
>
> Key: PROTON-1041
> URL: https://issues.apache.org/jira/browse/PROTON-1041
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: cpp-binding
>Affects Versions: 0.11.0, 0.12.0
>Reporter: Otavio Rodolfo Piske
>Assignee: Cliff Jansen
>Priority: Minor
>  Labels: patch
> Fix For: 0.12.0
>
> Attachments: recurring-timer-example.patch
>
>
> The C++ documentation is missing the recurring_timer.cpp example in its 
> documentation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-544) Subscriptions have no documentation

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-544:
---
Labels: messenger  (was: )

> Subscriptions have no documentation
> ---
>
> Key: PROTON-544
> URL: https://issues.apache.org/jira/browse/PROTON-544
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Affects Versions: 0.7
>    Reporter: Justin Ross
>  Labels: messenger
>
> For instance, you really want to know that when you do this:
>   sub = msgr.subscribe("amqp://0.0.0.0/#")
> You have sub.address, so you can do this:
>   msg = Message()
>   msg.reply_to = sub.address
> The API doc for Messenger.subscribe says nothing about its return value, and 
> Subscription is not among the classes in the generated API doc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-614) PHP Fatal error: Uncaught exception 'MessengerException' with message '[-5]: no valid sources'

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-614:
---
Labels: messenger php php-proton  (was: php php-proton)

> PHP Fatal error:  Uncaught exception 'MessengerException' with message '[-5]: 
> no valid sources'
> ---
>
> Key: PROTON-614
> URL: https://issues.apache.org/jira/browse/PROTON-614
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: php-binding
>Affects Versions: 0.7
> Environment: Ubuntu Linux on Amazon EC2
>Reporter: Jose Berardo Cunha
>Priority: Minor
>  Labels: messenger, php, php-proton
>
> Sorry, but I don't know if it is really a bug or I'm doing something wrong. 
> There is no documentation for Proton PHP, so here I am.
> Every time I try to execute recv.php sample I get this error:
> [0x16d2180]:ERROR[0] (null)
> [0x16d2180]:ERROR[0] (null)
> CONNECTION ERROR connection aborted (remote)
> PHP Fatal error:  Uncaught exception 'MessengerException' with message '[-5]: 
> no valid sources' in /usr/share/php/proton.php:61
> Stack trace:
> #0 /usr/share/php/proton.php(146): Messenger->_check(-5)
> #1 /home/ubuntu/qpid-proton-0.7/tests/smoke/recv.php(20): Messenger->recv()
> #2 {main}
>   thrown in /usr/share/php/proton.php on line 61
> I've tried all of this command lines:
> $ php recv.php 
> $ php recv.php "amqp://0.0.0.0"
> $ php recv.php "amqp://127.0.0.1"
> $ php recv.php "amqp://localhost"
> $ php recv.php "amqp://localhost:5672"
> $ php recv.php "amqp://localhost/myqueue"
> $ php recv.php "amqp://localhost:5672/myqueue"
> Where myqueue is my first queue created at Qpid 0.28 Web Console.
> I'got the same Connection aborted on send.php but what is weird is when I run 
> send.php against an ActiveMQ Apollo broker I have no error message and I can 
> see for just one or two seconds one line referring my message sent to it at 
> its web console. So I presumed that send.php is able to connect an amqp 
> broker but I don't know why it doesn't connect to Qpid 0.28. 
> Please, What am I doing wrong, what are valid sources and where can I find 
> more documentation about the Proton PHP library?
> Even the proton.php and cproton.php created by Swig have no comments.
> Thank you.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-886) make proton enforce handle-max

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-886:
---
Component/s: proton-j
 proton-c

> make proton enforce handle-max 
> ---
>
> Key: PROTON-886
> URL: https://issues.apache.org/jira/browse/PROTON-886
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c, proton-j
>Reporter: michael goulish
>
> Make the code enforce limits on handles (and links) from section 2.7.2 of the 
> AMQP 1.0 spec.
> The handle-max value is the highest handle value that can be used on the 
> session. A peer MUST NOT attempt to attach a link using a handle value 
> outside the range that its partner can handle.  A peer that receives a handle 
> outside the supported range MUST close the connection with the framing-error 
> error-code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-1057) Windows SChannel SSL test failure

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1057:

Labels: windows  (was: )

> Windows SChannel SSL test failure
> -
>
> Key: PROTON-1057
> URL: https://issues.apache.org/jira/browse/PROTON-1057
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.12.0
> Environment: Windows only.
>Reporter: Cliff Jansen
>Assignee: Cliff Jansen
>  Labels: windows
>
> This problem started since PROTON-1048 which did not touch the Proton-C 
> SChannel related code - it just tweaked the test infrastructure to use 
> alternate certificate formats for Windows.
> The proton_tests.ssl.SslTest.test_server_hostname_authentication test 
> randomly crashes on Windows, presumably from some memory corruption 
> somewhere.  It often runs fine.  Seems to happen more frequently on some 
> systems than others.  Not yet seen on a 64 bit build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-470) Perl bindings should have an interop test

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-470:
---
Assignee: (was: Darryl L. Pierce)

> Perl bindings should have an interop test
> -
>
> Key: PROTON-470
> URL: https://issues.apache.org/jira/browse/PROTON-470
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: proton-c
>Reporter: Darryl L. Pierce
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-342) installing into custom location doesn't work nicely (and is not properly documented)

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-342:
---
Assignee: (was: Darryl L. Pierce)

> installing into custom location doesn't work nicely (and is not properly 
> documented)
> 
>
> Key: PROTON-342
> URL: https://issues.apache.org/jira/browse/PROTON-342
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
>Reporter: Gordon Sim
>
> The README suggests setting -DCMAKE_INSTALL_PREFIX when running cmake, it 
> does not mention setting DESTDIR when invoking make install.
> If you don't set the DESTDIR on make install it will honour the 
> CMAKE_INSTALL_PREFIX for some parts of the installation (e.g. header files, 
> native libraries, pkg-config file etc) but the python bindings (and I assume 
> other bindings) will still install in the standard location which will fail 
> if you are not running as root.
> However if you set DESTDIR then this alters the location of the headers, 
> libraries and pkg-config , which now install into 
> $DESTDIR/$CMAKE_INSTALL_PREFIX and the pkg-config file no longer has the 
> correct include or library paths in it. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-451) PHP binding build failed with PHP5.5 (ZTS)

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-451:
---
Assignee: (was: Darryl L. Pierce)

> PHP binding build failed with PHP5.5 (ZTS)
> --
>
> Key: PROTON-451
> URL: https://issues.apache.org/jira/browse/PROTON-451
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.5
> Environment: Debian 7 (amd64), PHP5.5.5 (built from source)
>Reporter: Dmitrii Zolotov
>
> SWIG PHP binding compilation failed with following errors:
> In file included from /usr/include/php/Zend/zend_alloc.h:27:0,
>  from /usr/include/php/Zend/zend.h:252,
>  from php_wrap.c:706:
> php_wrap.c: In function ‘t_output_helper’:
> /usr/include/php/Zend/../TSRM/TSRM.h:167:18: error: ‘tsrm_ls’ undeclared 
> (first use in this function)
>  #define TSRMLS_C tsrm_ls
>   ^
> /usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro 
> ‘TSRMLS_C’
>  #define TSRMLS_CC , TSRMLS_C
>  ^
> /usr/include/php/Zend/zend_gc.h:160:32: note: in expansion of macro 
> ‘TSRMLS_CC’
>gc_remove_zval_from_buffer(z TSRMLS_CC);  \
> ^
> /usr/include/php/Zend/zend_gc.h:213:6: note: in expansion of macro 
> ‘GC_REMOVE_ZVAL_FROM_BUFFER’
>   GC_REMOVE_ZVAL_FROM_BUFFER(z); \
>   ^
> php_wrap.c:1154:5: note: in expansion of macro ‘FREE_ZVAL’
>  FREE_ZVAL(o);
>  ^
> /usr/include/php/Zend/../TSRM/TSRM.h:167:18: note: each undeclared identifier 
> is reported only once for each function it appears in
>  #define TSRMLS_C tsrm_ls
>   ^
> /usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro 
> ‘TSRMLS_C’
>  #define TSRMLS_CC , TSRMLS_C
>  ^
> /usr/include/php/Zend/zend_gc.h:160:32: note: in expansion of macro 
> ‘TSRMLS_CC’
>gc_remove_zval_from_buffer(z TSRMLS_CC);  \
> ^
> /usr/include/php/Zend/zend_gc.h:213:6: note: in expansion of macro 
> ‘GC_REMOVE_ZVAL_FROM_BUFFER’
>   GC_REMOVE_ZVAL_FROM_BUFFER(z); \
>   ^
> php_wrap.c:1154:5: note: in expansion of macro ‘FREE_ZVAL’
>  FREE_ZVAL(o);
>  ^
> I've tried to run swig manually (with php.i / cproton.i) and get the same 
> error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-437) Cmake fails to find Perl libraries on Ubuntu 11.10

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-437:
---
Assignee: (was: Darryl L. Pierce)

> Cmake fails to find Perl libraries on Ubuntu 11.10
> --
>
> Key: PROTON-437
> URL: https://issues.apache.org/jira/browse/PROTON-437
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Reporter: Darryl L. Pierce
>
> Even with the FindPerlLibs module it is still failing to find the Perl 
> libraries on Ubuntu.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-448) Ruby bindings need to have their set calls updated to properly map values to pn_data_t*

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-448:
---
Assignee: (was: Darryl L. Pierce)

> Ruby bindings need to have their set calls updated to properly map values to 
> pn_data_t*
> ---
>
> Key: PROTON-448
> URL: https://issues.apache.org/jira/browse/PROTON-448
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.5
>Reporter: Darryl L. Pierce
>
> When using the APIs in Qpid::Proton::Data I'm seeing:
> irb(main):001:0> require 'qpid_proton'
> => true
> irb(main):002:0> data = Qpid::Proton::Data.new
> => #
> irb(main):003:0> data.ubyte = 3
> value=3
> TypeError: Expected argument 0 of type pn_data_t *, but got Fixnum 16
>   in SWIG method 'pn_data_put_ubyte'
>   from 
> /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/data.rb:437:in
>  `pn_data_put_ubyte'
>   from 
> /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/data.rb:437:in
>  `ubyte='
>   from (irb):3
>   from /usr/bin/irb:12:in `'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-347) pn_messenger_set_timeout leads to send hanging

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-347:
---
Labels: messenger  (was: )

> pn_messenger_set_timeout leads to send hanging
> --
>
> Key: PROTON-347
> URL: https://issues.apache.org/jira/browse/PROTON-347
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
> Environment: Latest SVN checkout as of this morning
>Reporter: Frank Quinn
>  Labels: messenger
> Attachments: qpid_messenger_timeout_failure.c
>
>
> A non-negative pn_messenger_set_timeout seems to result in pn_messenger_send 
> hanging with the following backtrace:
> Thread 2 (Thread 0x7fee4c037700 (LWP 16763)):
> #0  0x003518ce99ad in poll () at ../sysdeps/unix/syscall-template.S:81
> #1  0x7fee4c079a42 in pn_driver_wait_2 ()
>from /usr/local/lib64/libqpid-proton.so.1
> #2  0x7fee4c079cea in pn_driver_wait ()
>from /usr/local/lib64/libqpid-proton.so.1
> #3  0x7fee4c0744e4 in pn_messenger_tsync ()
>from /usr/local/lib64/libqpid-proton.so.1
> #4  0x7fee4c0747dc in pn_messenger_sync ()
>from /usr/local/lib64/libqpid-proton.so.1
> #5  0x7fee4c076327 in pn_messenger_recv ()
>from /usr/local/lib64/libqpid-proton.so.1
> #6  0x00400d31 in qpidListenerThread ()
> #7  0x003519407d15 in start_thread (arg=0x7fee4c037700)
> at pthread_create.c:308
> #8  0x003518cf248d in clone ()
> at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114
> Thread 1 (Thread 0x7fee4c039840 (LWP 16762)):
> #0  0x003519408e60 in pthread_join (threadid=140661454239488, 
> ---Type  to continue, or q  to quit---
> thread_return=0x0) at pthread_join.c:92
> #1  0x00400f11 in main ()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-639) pn_messenger_recv hangs / spins on connection refused

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-639:
---
Labels: messenger  (was: )

> pn_messenger_recv hangs / spins on connection refused
> -
>
> Key: PROTON-639
> URL: https://issues.apache.org/jira/browse/PROTON-639
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.7, 0.8
> Environment: Red Hat Enterprise Linux 6.5
> kernel: 2.6.32-431.1.2.el6.x86_64
> qpid-proton 0.7 and 9939b8a990cd53c1b5e099c083bdcf61ad22232b git-svn-id: 
> https://svn.apache.org/repos/asf/qpid/proton/trunk@1613151 
> 13f79535-47bb-0310-9956-ffa450edef68
>Reporter: Rohan McGovern
>  Labels: messenger
>
> If I try to connect to a closed port with a messenger, pn_messenger_recv 
> outputs messages to stderr and then spins at high CPU usage, rather than 
> returning with an error as expected.
> This seems to be impacted by kernel version.  I have a RHEL 6.5 machine which 
> demonstrates this problem reliably when using kernel 
> 2.6.32-431.1.2.el6.x86_64 and not when using 3.10.28-1.el6.elrepo.x86_64 .
> This can be easily reproduced using the "recv" example in the qpid-proton 
> sources.
> {noformat:title=kernel 2.6.32 - broken}
> $ build/examples/messenger/c/recv amqp://127.0.0.1:1
> recv: Connection refused
> [0x63d8e0]:ERROR amqp:connection:framing-error SASL header mismatch: ''
> CONNECTION ERROR connection aborted (remote)
> # hangs at this point with high CPU usage
> {noformat}
> Compare with the behavior on a later kernel version, which seems right:
> {noformat:title=kernel 3.10.28 - expected behavior}
> $ build/examples/messenger/c/recv amqp://127.0.0.1:1
> recv: Connection refused
> [0x15af8e0]:ERROR amqp:connection:framing-error SASL header mismatch: ''
> CONNECTION ERROR connection aborted (remote)
> send: Broken pipe
> /home/rmcgover/src/qpid-proton/examples/messenger/c/recv.c:132: no valid 
> sources
> # exits with exit code 1
> {noformat}
> Here's a sample backtrace when the hang is occurring:
> {noformat}
> (gdb) bt
> #0  0x77ffea11 in clock_gettime ()
> #1  0x003a51e03e46 in clock_gettime () from /lib64/librt.so.1
> #2  0x77de6b5e in pn_i_now () from 
> /home/rmcgover/src/qpid-proton/build/proton-c/libqpid-proton.so.2
> #3  0x77de4c06 in pn_selector_select () from 
> /home/rmcgover/src/qpid-proton/build/proton-c/libqpid-proton.so.2
> #4  0x77ddf736 in pni_wait () from 
> /home/rmcgover/src/qpid-proton/build/proton-c/libqpid-proton.so.2
> #5  0x77ddf869 in pn_messenger_tsync () from 
> /home/rmcgover/src/qpid-proton/build/proton-c/libqpid-proton.so.2
> #6  0x77ddf8df in pn_messenger_sync () from 
> /home/rmcgover/src/qpid-proton/build/proton-c/libqpid-proton.so.2
> #7  0x77de1676 in pn_messenger_recv () from 
> /home/rmcgover/src/qpid-proton/build/proton-c/libqpid-proton.so.2
> #8  0x004014b2 in main ()
> {noformat}
> There's a while(true) loop in pn_messenger_tsync which seems like it never 
> escapes.  strace also shows that the process is repeatedly doing a poll.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (PROTON-356) PHP bindings are not built on MacOS 10.8

2016-01-07 Thread Justin Ross (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-356:
---
Labels: osx  (was: )

> PHP bindings are not built on MacOS 10.8
> 
>
> Key: PROTON-356
> URL: https://issues.apache.org/jira/browse/PROTON-356
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.4
> Environment: MacOS X 10.8, Homebrew
>Reporter: Serge Smertin
>Priority: Critical
>  Labels: osx
>
> it's not possible to build PHP extension for MacOS, as it gives linking 
> error. Relates to issue - https://issues.apache.org/jira/browse/PROTON-108, 
> which is not resolved properly. 
> Short-term viable solution:
> - Attach *.so files to this ticket for macos x exactly
> Long-term solution:
> - Make proper linking



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


  1   2   3   >