qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Schloming <rafa...@redhat.com>
Subject Re: [Proton] ERROR amqp:connection:framing-error connection aborted
Date Thu, 05 Jul 2012 21:51:05 GMT
According to the log output you posted, the body of the loop is never
running. Can you log the value that pn_connection_state is returning and
verify that the test is working as expected? I don't recall offhand how
exactly bitwise operators work in Ruby.

--Rafael

On Thu, 2012-07-05 at 16:20 -0400, Darryl L. Pierce wrote:
> On Tue, Jul 03, 2012 at 05:13:17PM -0400, Rafael Schloming wrote:
> > Can you post the ruby code you're using? I took a look at the original
> > python example you're transcoding and based on the trace it's likely
> > something is messed up around this part:
> > 
> >     # we're done, close and wait for the remote to close also
> >     pn_connection_close(sender.conn)
> >     while not (pn_connection_state(sender.conn) & PN_REMOTE_CLOSED):
> >         sender.wait()
> 
> Sure, you can see all that I've done so far up in my Github repo:
> 
> https://github.com/mcpierce/proton/tree/Ruby-bindings
> 
> What I did in the Ruby was to line-by-line copy the above with:
> 
>   puts "Closing the connection."
>   Cproton::pn_connection_close sender.conn
>   while !(Cproton::pn_connection_state(sender.conn) & Cproton::PN_REMOTE_CLOSED)
>     log "Waiting for things to become closed..."
>     sender.wait
>   end
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message