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

Richard Laos updated PROTON-1307:
---------------------------------
    Description: 
Calling SetInferred() has no effect when sending a message using the 
go-binding. Also, calling Inferred() against amqp.message does not reflect 
calls to SetInferred(). Looks like the problem is on line 264 in 
amqp/message.go. I tested the following change:
{code}
func (m *message) SetInferred(b bool)  { C.pn_message_set_inferred(m.pn, 
C.bool(b)) }
{code}

Seems to behave as expected afterwards.

  was:
Calling SetInferred() has no effect when sending a message using the 
go-binding. Also, calling Infferred() against amqp.message does not frelect 
calls to SetInferred(). Looks like the problem is on line 264 in 
amqp/message.go. I tested the following change:
{code}
func (m *message) SetInferred(b bool)  { C.pn_message_set_inferred(m.pn, 
C.bool(b)) }
{code}

Seems to behave as expected afterwards.


> go binding amqp.message does not honor Inferred flag
> ----------------------------------------------------
>
>                 Key: PROTON-1307
>                 URL: https://issues.apache.org/jira/browse/PROTON-1307
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: go-binding
>    Affects Versions: 0.15.0
>            Reporter: Richard Laos
>            Assignee: Alan Conway
>            Priority: Minor
>
> Calling SetInferred() has no effect when sending a message using the 
> go-binding. Also, calling Inferred() against amqp.message does not reflect 
> calls to SetInferred(). Looks like the problem is on line 264 in 
> amqp/message.go. I tested the following change:
> {code}
> func (m *message) SetInferred(b bool)  { C.pn_message_set_inferred(m.pn, 
> C.bool(b)) }
> {code}
> Seems to behave as expected afterwards.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to