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

ASF subversion and git services commented on PROTON-1415:
---------------------------------------------------------

Commit c87b23ef7b473cd48e8775ed9c353d042d99f3ca in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=c87b23e ]

PROTON-1415: go fix conversion of pn_seconds_t

genwrap.go: fix conversion of pn_seconds_t to time.Duration.
Exposed by adding TerminusSettings which includes a pn_seconds_t Timeout value.
This is the only place pn_seconds_t is used for a duration in proton instead of 
pn_millis_t.


> go binding does not create durable subscriber
> ---------------------------------------------
>
>                 Key: PROTON-1415
>                 URL: https://issues.apache.org/jira/browse/PROTON-1415
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: go-binding
>    Affects Versions: 0.17.0
>         Environment: Docker for Windows 1.13.1
> Docker golang:1.7
> ActiveMQ 5.14.3 (Java 1.8.0_111)
>            Reporter: Jeremy Gooch
>            Assignee: Alan Conway
>
> When creating a subscription from Qpid Electron, the subscription name is not 
> set, meaning that durable subscriptions cannot be created.
> Example code -> 
> https://github.com/goochjs/amqp-activemq-python-go/blob/master/go-electron/receive.go
> Go example snippet (setting container ID):-
>       container = electron.NewContainer(fmt.Sprintf("receive-client[%v]", 
> os.Getpid()))
> Go example snippet (failing to set subscription name):-
>       if r, err := c.Receiver(electron.LinkName(SubscriptionName), 
> electron.Source("topic://"+AmqpResourceName)); err == nil {
> For comparison, I have a working Qpid Proton Python client, which sets both 
> connection ID and subscription name -> 
> https://github.com/goochjs/amqp-activemq-python-go/blob/master/python-proton/message_receiver.py
> Python example snippet (setting container ID):-
>       # Name the subscription after the script file name
>         event.container.container_id = __file__
> Python example snippet (setting subscription name):-
>         messaging_connection = event.container.connect(self.url)
>         event.container.create_receiver(
>             messaging_connection,
>             self.resource,
>             name=self.subscription_name,
>             options=durable
>         )



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to